From ad7e14e554a7217b612f793ae392dbd1fbeb596f Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 9 Apr 2025 14:05:25 +0100 Subject: [PATCH 01/16] [NRL-1179] Add codebuild resources to mgmt account-wide-infra --- .../mgmt/codebuild.tf | 117 ++++++++++++++++++ .../account-wide-infrastructure/mgmt/data.tf | 4 + .../account-wide-infrastructure/mgmt/ecr.tf | 33 +++++ .../mgmt/secrets.tf | 2 +- .../account-wide-infrastructure/mgmt/vars.tf | 6 + 5 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 terraform/account-wide-infrastructure/mgmt/codebuild.tf create mode 100644 terraform/account-wide-infrastructure/mgmt/ecr.tf diff --git a/terraform/account-wide-infrastructure/mgmt/codebuild.tf b/terraform/account-wide-infrastructure/mgmt/codebuild.tf new file mode 100644 index 000000000..359db33d5 --- /dev/null +++ b/terraform/account-wide-infrastructure/mgmt/codebuild.tf @@ -0,0 +1,117 @@ +data "aws_iam_policy_document" "assume_role" { + statement { + effect = "Allow" + + principals { + type = "Service" + identifiers = ["codebuild.amazonaws.com"] + } + + actions = [ + "sts:AssumeRole", + "sts:AssumeRoleWithWebIdentity", + "sts:TagSession" + ] + } +} + +resource "aws_iam_role" "codebuild_service_role" { + name = "${local.project}-codebuild-service-role" + assume_role_policy = data.aws_iam_policy_document.assume_role.json +} + +data "aws_iam_policy_document" "codebuild_policy" { + statement { + effect = "Allow" + + actions = [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents", + ] + + resources = ["*"] + } + + statement { + effect = "Allow" + actions = [ + "codeconnections:GetConnectionToken", + "codeconnections:GetConnection" + ] + resources = ["arn:aws:codestar-connections:us-east-1:123456789012:connection/guid-string"] + } + + statement { + effect = "Allow" + actions = [ + "secretsmanager:GetSecretValue", + "secretsmanager:DescribeSecret", + "secretsmanager:ListSecretVersionIds" + ] + resources = [ + aws_secretsmanager_secret.github_pat.arn, + ] + } + + statement { + effect = "Allow" + actions = [ + "ecr:*" + ] + resources = [ + "${aws_ecr_repository.repository.arn}", + "${aws_ecr_repository.repository.arn}:*" + ] + } +} + +resource "aws_iam_role_policy" "codebuild_policy" { + role = aws_iam_role.codebuild_service_role.name + policy = data.aws_iam_policy_document.codebuild_policy.json +} + +resource "aws_codebuild_project" "project" { + name = "${local.project}-ci-build-project" + description = "NRLF CI Build Project" + service_role = aws_iam_role.codebuild_service_role.arn + + artifacts { + type = "NO_ARTIFACTS" + } + + environment { + compute_type = "BUILD_GENERAL1_SMALL" + image = "${aws_ecr_repository.repository.repository_url}:latest" + type = "LINUX_CONTAINER" + image_pull_credentials_type = "CODEBUILD" + } + + logs_config { + cloudwatch_logs { + group_name = "${local.project}-ci-build-logs" + stream_name = "build-log-stream" + } + } + + source { + type = "GITHUB" + location = "https://github.com/NHSDigital/NRLF" + git_clone_depth = 1 + } + + source_version = "main" + project_visibility = "PRIVATE" +} + +resource "aws_codebuild_webhook" "github_workflow" { + project_name = aws_codebuild_project.project.name + build_type = "BUILD" + filter_group { + filter { + type = "EVENT" + pattern = "WORKFLOW_JOB_QUEUED" + } + } + depends_on = [aws_codebuild_project.project, aws_iam_role.codebuild_service_role] +} diff --git a/terraform/account-wide-infrastructure/mgmt/data.tf b/terraform/account-wide-infrastructure/mgmt/data.tf index 8b225e350..f6fbb40a4 100644 --- a/terraform/account-wide-infrastructure/mgmt/data.tf +++ b/terraform/account-wide-infrastructure/mgmt/data.tf @@ -1,3 +1,7 @@ +data "aws_caller_identity" "current" {} + +data "aws_region" "current" {} + data "aws_dynamodb_table" "terraform_state_lock" { name = "${local.project}--terraform-state-lock" } diff --git a/terraform/account-wide-infrastructure/mgmt/ecr.tf b/terraform/account-wide-infrastructure/mgmt/ecr.tf new file mode 100644 index 000000000..eb631f411 --- /dev/null +++ b/terraform/account-wide-infrastructure/mgmt/ecr.tf @@ -0,0 +1,33 @@ +resource "aws_ecr_repository" "repository" { + name = "${local.project}-ci-build" + image_tag_mutability = "MUTABLE" +} + +data "aws_iam_policy_document" "codebuild_access_policy" { + statement { + sid = "CodeBuildEcrAccess" + effect = "Allow" + + principals { + type = "Service" + identifiers = ["codebuild.amazonaws.com"] + } + + actions = [ + "ecr:GetDownloadUrlForLayer", + "ecr:BatchGetImage", + "ecr:BatchCheckLayerAvailability", + ] + + condition { + test = "StringEquals" + variable = "aws:SourceAccount" + values = ["${data.aws_caller_identity.current.account_id}"] + } + } +} + +resource "aws_ecr_repository_policy" "codebuild_access_policy" { + repository = aws_ecr_repository.repository.name + policy = data.aws_iam_policy_document.codebuild_access_policy.json +} diff --git a/terraform/account-wide-infrastructure/mgmt/secrets.tf b/terraform/account-wide-infrastructure/mgmt/secrets.tf index 2fb89fcf7..f6080db5b 100644 --- a/terraform/account-wide-infrastructure/mgmt/secrets.tf +++ b/terraform/account-wide-infrastructure/mgmt/secrets.tf @@ -1,3 +1,3 @@ resource "aws_secretsmanager_secret" "identities_account_id" { - name = "${local.prefix}--nhs-identities-account-id" + name = "${local.project}--nhs-identities-account-id" } diff --git a/terraform/account-wide-infrastructure/mgmt/vars.tf b/terraform/account-wide-infrastructure/mgmt/vars.tf index 4785b5af3..f3c49297c 100644 --- a/terraform/account-wide-infrastructure/mgmt/vars.tf +++ b/terraform/account-wide-infrastructure/mgmt/vars.tf @@ -22,3 +22,9 @@ variable "vpc_cidr_block" { type = string default = "10.0.0.0/16" } + +variable "github_pat_secret_name" { + description = "The name of the secret in Secrets Manager that contains a GitHub Personal Access Token for CI builds" + type = string + default = "nhsd-nrlf--codebuild-github-pat" +} From 83554243f76bef1a83d3cdeeeeeee75621892a86 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 9 Apr 2025 16:39:21 +0100 Subject: [PATCH 02/16] [NRL-1179] Add container image build for ci-build image. Fixup instructions to include info about setting up github pat --- Dockerfile.ci-build | 29 +++++++++++++++++++ Makefile | 23 +++++++++++++++ scripts/bootstrap.sh | 2 ++ .../account-wide-infrastructure/README.md | 22 ++++++++++++++ .../mgmt/codebuild.tf | 2 +- .../mgmt/secrets.tf | 2 +- .../account-wide-infrastructure/mgmt/vars.tf | 6 ---- terraform/bootstrap/README.md | 2 ++ 8 files changed, 80 insertions(+), 8 deletions(-) create mode 100644 Dockerfile.ci-build diff --git a/Dockerfile.ci-build b/Dockerfile.ci-build new file mode 100644 index 000000000..b14ae8480 --- /dev/null +++ b/Dockerfile.ci-build @@ -0,0 +1,29 @@ +FROM ubuntu:22.04 + +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \ + ca-certificates curl gnupg lsb-release \ + build-essential make libssl-dev zlib1g-dev libbz2-dev libreadline-dev \ + libsqlite3-dev llvm libncursesw5-dev tk-dev libxml2-dev \ + libxmlsec1-dev libffi-dev libicu70 liblzma-dev \ + python3 git curl wget \ + zip xz-utils tar unzip && \ + apt clean && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /root +RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.15.0 && \ + echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc && \ + echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc && \ + echo "export ASDF_DIR=$HOME/.asdf" >> ~/.bashrc && \ + echo "export PATH=\$ASDF_DIR/bin:\$PATH" >> ~/.bashrc && \ + echo "export PATH=\$ASDF_DIR/shims:\$PATH" >> ~/.bashrc + +ADD .tool-versions . +RUN for plugin in $(cat .tool-versions | cut -d' ' -f1); do \ + ./.asdf/bin/asdf plugin add $plugin; \ + done && \ + ./.asdf/bin/asdf install && \ + ln -s $(pwd)/.asdf/shims/* /usr/local/bin/. + +CMD [ "/bin/bash" ] diff --git a/Makefile b/Makefile index af0ba0a71..d9b8c420f 100644 --- a/Makefile +++ b/Makefile @@ -74,6 +74,29 @@ build-api-packages: ./api/consumer/* ./api/producer/* ./scripts/build-lambda-package.sh $${api} $(DIST_PATH); \ done +build-ci-image: ## Build the CI image + @echo "Building the CI image" + docker build \ + -t nhsd-nrlf-ci-build:latest \ + -f Dockerfile.ci-build \ + . + +ecr-login: ## Login to NRLF ECR repo + @echo "Logging into ECR" + $(eval AWS_REGION := $(shell aws configure get region)) + $(eval AWS_ACCOUNT_ID := $(shell aws sts get-caller-identity | jq -r .Account)) + @aws ecr get-login-password --region "$(AWS_REGION)" \ + | docker login --username AWS --password-stdin \ + $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com + +publish-ci-image: build-ci-image ecr-login ## Publish the CI image + @echo "Publishing the CI image" + $(eval AWS_REGION := $(shell aws configure get region)) + $(eval AWS_ACCOUNT_ID := $(shell aws sts get-caller-identity | jq -r .Account)) + @docker tag nhsd-nrlf-ci-build:latest \ + $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com/nhsd-nrlf-ci-build:latest + @docker push $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com/nhsd-nrlf-ci-build:latest + test: check-warn ## Run the unit tests @echo "Running unit tests" pytest --ignore=tests/smoke $(TEST_ARGS) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index b3e9069b2..ef680dda7 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -60,6 +60,7 @@ function _bootstrap() { aws secretsmanager create-secret --name "${DEV_ACCOUNT_ID_LOCATION}" aws secretsmanager create-secret --name "${TEST_ACCOUNT_ID_LOCATION}" aws secretsmanager create-secret --name "${PROD_ACCOUNT_ID_LOCATION}" + aws secretsmanager create-secret --name "${PROFILE_PREFIX}--codebuild-github-pat" ;; #---------------- "delete-mgmt") @@ -81,6 +82,7 @@ function _bootstrap() { aws secretsmanager delete-secret --secret-id "${DEV_ACCOUNT_ID_LOCATION}" aws secretsmanager delete-secret --secret-id "${TEST_ACCOUNT_ID_LOCATION}" aws secretsmanager delete-secret --secret-id "${PROD_ACCOUNT_ID_LOCATION}" + aws secretsmanager delete-secret --secret-id "${PROFILE_PREFIX}--codebuild-github-pat" ;; #---------------- "create-non-mgmt") diff --git a/terraform/account-wide-infrastructure/README.md b/terraform/account-wide-infrastructure/README.md index dd8949533..06d0159ed 100644 --- a/terraform/account-wide-infrastructure/README.md +++ b/terraform/account-wide-infrastructure/README.md @@ -43,6 +43,28 @@ Once you're happy with your planned changes, you can apply them with: terraform apply ``` +### Build and publish the container image for CI build + +Once all the mgmt infra has been deployed, you need to build and publish the CI image to the ECR repo. + +To do this, first build the image as follows: + +``` +make build-ci-image +``` + +and then login to ECR: + +``` +make ecr-login +``` + +and push the image: + +``` +make publish-ci-image +``` + ## Deploy account wide resources To deploy the account wide resources, first login to the AWS mgmt account on the CLI. diff --git a/terraform/account-wide-infrastructure/mgmt/codebuild.tf b/terraform/account-wide-infrastructure/mgmt/codebuild.tf index 359db33d5..617cee902 100644 --- a/terraform/account-wide-infrastructure/mgmt/codebuild.tf +++ b/terraform/account-wide-infrastructure/mgmt/codebuild.tf @@ -50,7 +50,7 @@ data "aws_iam_policy_document" "codebuild_policy" { "secretsmanager:ListSecretVersionIds" ] resources = [ - aws_secretsmanager_secret.github_pat.arn, + "arn:aws:secretsmanager:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:secret:${local.project}--codebuild-github-pat", ] } diff --git a/terraform/account-wide-infrastructure/mgmt/secrets.tf b/terraform/account-wide-infrastructure/mgmt/secrets.tf index f6080db5b..2fb89fcf7 100644 --- a/terraform/account-wide-infrastructure/mgmt/secrets.tf +++ b/terraform/account-wide-infrastructure/mgmt/secrets.tf @@ -1,3 +1,3 @@ resource "aws_secretsmanager_secret" "identities_account_id" { - name = "${local.project}--nhs-identities-account-id" + name = "${local.prefix}--nhs-identities-account-id" } diff --git a/terraform/account-wide-infrastructure/mgmt/vars.tf b/terraform/account-wide-infrastructure/mgmt/vars.tf index f3c49297c..4785b5af3 100644 --- a/terraform/account-wide-infrastructure/mgmt/vars.tf +++ b/terraform/account-wide-infrastructure/mgmt/vars.tf @@ -22,9 +22,3 @@ variable "vpc_cidr_block" { type = string default = "10.0.0.0/16" } - -variable "github_pat_secret_name" { - description = "The name of the secret in Secrets Manager that contains a GitHub Personal Access Token for CI builds" - type = string - default = "nhsd-nrlf--codebuild-github-pat" -} diff --git a/terraform/bootstrap/README.md b/terraform/bootstrap/README.md index df6ed10c4..35417134b 100644 --- a/terraform/bootstrap/README.md +++ b/terraform/bootstrap/README.md @@ -45,6 +45,8 @@ Now log on to AWS web console and manually add the aws account ids to each respe - `nhsd-nrlf--mgmt--test-account-id` - `nhsd-nrlf--mgmt--dev-account-id` +Generate a Github PAT for the NRLF source repo and add it to the `nhsd-nrlf--codebuild-github-pat` secret following the documentation on [AWS Codebuild Access Tokens for Github](https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens-github.html). This is required for codebuild to be used for Github Self-Hosted Runners. + ### Create trust role for `mgmt` for your `prod`, `test` and `dev` accounts In order to allow `mgmt` to create resources in `prod`, `test` and `dev` accounts you From 90a251bbe56eb644c06e188edb108f5e53ff7b13 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 9 Apr 2025 16:52:36 +0100 Subject: [PATCH 03/16] [NRL-1179] Switch build action to use codebuild runner, also allow it to use the defined branch on manual exec --- .github/workflows/daily-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index 0fc15523c..1b0c6ecfb 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -18,14 +18,14 @@ on: jobs: build: - name: Build - develop - runs-on: [self-hosted, ci] + name: Build - ${{ github.ref }} + runs-on: codebuild-nhsd-nrlf--ci-build-project-${{ github.run_id }}-${{ github.run_attempt }} steps: - - name: Git clone - develop + - name: Git clone - ${{ github.ref }} uses: actions/checkout@v4 with: - ref: develop + ref: ${{ github.ref }} - name: Setup asdf cache uses: actions/cache@v4 From 6b139a3978cdff46992b2a50e9114af8a28726a2 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 9 Apr 2025 17:30:34 +0100 Subject: [PATCH 04/16] [NRL-1179] Add test backup account to mgmt account --- scripts/bootstrap.sh | 3 +++ terraform/account-wide-infrastructure/mgmt/data.tf | 8 ++++++++ .../mgmt/iam__developer-role.tf | 1 + terraform/bootstrap/README.md | 1 + 4 files changed, 13 insertions(+) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index ef680dda7..20280d768 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -8,6 +8,7 @@ TERRAFORM_ROLE_NAME="terraform" MGMT_ACCOUNT_ID_LOCATION="${PROFILE_PREFIX}--mgmt--mgmt-account-id" PROD_ACCOUNT_ID_LOCATION="${PROFILE_PREFIX}--mgmt--prod-account-id" TEST_ACCOUNT_ID_LOCATION="${PROFILE_PREFIX}--mgmt--test-account-id" +TEST_BACKUP_ACCOUNT_ID_LOCATION="${PROFILE_PREFIX}--mgmt--test-backup-account-id" DEV_ACCOUNT_ID_LOCATION="${PROFILE_PREFIX}--mgmt--dev-account-id" @@ -59,6 +60,7 @@ function _bootstrap() { aws secretsmanager create-secret --name "${MGMT_ACCOUNT_ID_LOCATION}" aws secretsmanager create-secret --name "${DEV_ACCOUNT_ID_LOCATION}" aws secretsmanager create-secret --name "${TEST_ACCOUNT_ID_LOCATION}" + aws secretsmanager create-secret --name "${TEST_BACKUP_ACCOUNT_ID_LOCATION}" aws secretsmanager create-secret --name "${PROD_ACCOUNT_ID_LOCATION}" aws secretsmanager create-secret --name "${PROFILE_PREFIX}--codebuild-github-pat" ;; @@ -81,6 +83,7 @@ function _bootstrap() { aws secretsmanager delete-secret --secret-id "${MGMT_ACCOUNT_ID_LOCATION}" aws secretsmanager delete-secret --secret-id "${DEV_ACCOUNT_ID_LOCATION}" aws secretsmanager delete-secret --secret-id "${TEST_ACCOUNT_ID_LOCATION}" + aws secretsmanager delete-secret --secret-id "${TEST_BACKUP_ACCOUNT_ID_LOCATION}" aws secretsmanager delete-secret --secret-id "${PROD_ACCOUNT_ID_LOCATION}" aws secretsmanager delete-secret --secret-id "${PROFILE_PREFIX}--codebuild-github-pat" ;; diff --git a/terraform/account-wide-infrastructure/mgmt/data.tf b/terraform/account-wide-infrastructure/mgmt/data.tf index f6fbb40a4..4aecc75cf 100644 --- a/terraform/account-wide-infrastructure/mgmt/data.tf +++ b/terraform/account-wide-infrastructure/mgmt/data.tf @@ -34,6 +34,10 @@ data "aws_secretsmanager_secret" "test_account_id" { name = "${local.project}--mgmt--test-account-id" } +data "aws_secretsmanager_secret" "test_backup_account_id" { + name = "${local.project}--mgmt--test-backup-account-id" +} + data "aws_secretsmanager_secret_version" "dev_account_id" { secret_id = data.aws_secretsmanager_secret.dev_account_id.name } @@ -41,3 +45,7 @@ data "aws_secretsmanager_secret_version" "dev_account_id" { data "aws_secretsmanager_secret_version" "test_account_id" { secret_id = data.aws_secretsmanager_secret.test_account_id.name } + +data "aws_secretsmanager_secret_version" "test_backup_account_id" { + secret_id = data.aws_secretsmanager_secret.test_backup_account_id.name +} diff --git a/terraform/account-wide-infrastructure/mgmt/iam__developer-role.tf b/terraform/account-wide-infrastructure/mgmt/iam__developer-role.tf index 8864fd13a..32f042014 100644 --- a/terraform/account-wide-infrastructure/mgmt/iam__developer-role.tf +++ b/terraform/account-wide-infrastructure/mgmt/iam__developer-role.tf @@ -63,6 +63,7 @@ module "developer_policy" { Resource = [ "arn:aws:iam::${data.aws_secretsmanager_secret_version.dev_account_id.secret_string}:role/terraform", "arn:aws:iam::${data.aws_secretsmanager_secret_version.test_account_id.secret_string}:role/terraform", + "arn:aws:iam::${data.aws_secretsmanager_secret_version.test_backup_account_id.secret_string}:role/terraform" ] }, { diff --git a/terraform/bootstrap/README.md b/terraform/bootstrap/README.md index 35417134b..1ed4c93bd 100644 --- a/terraform/bootstrap/README.md +++ b/terraform/bootstrap/README.md @@ -43,6 +43,7 @@ Now log on to AWS web console and manually add the aws account ids to each respe - `nhsd-nrlf--mgmt--mgmt-account-id` - `nhsd-nrlf--mgmt--prod-account-id` - `nhsd-nrlf--mgmt--test-account-id` +- `nhsd-nrlf--mgmt--test-backup-account-id` - `nhsd-nrlf--mgmt--dev-account-id` Generate a Github PAT for the NRLF source repo and add it to the `nhsd-nrlf--codebuild-github-pat` secret following the documentation on [AWS Codebuild Access Tokens for Github](https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens-github.html). This is required for codebuild to be used for Github Self-Hosted Runners. From d555f5abc76c2bb208aa46d7f8c0194a604844b6 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 9 Apr 2025 17:45:48 +0100 Subject: [PATCH 05/16] [NRL-1179] Add condition to only allow codebuild from the current account to assume the codebuild service role --- .../account-wide-infrastructure/mgmt/codebuild.tf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/terraform/account-wide-infrastructure/mgmt/codebuild.tf b/terraform/account-wide-infrastructure/mgmt/codebuild.tf index 617cee902..a1059ce04 100644 --- a/terraform/account-wide-infrastructure/mgmt/codebuild.tf +++ b/terraform/account-wide-infrastructure/mgmt/codebuild.tf @@ -1,4 +1,4 @@ -data "aws_iam_policy_document" "assume_role" { +data "aws_iam_policy_document" "codebuild_assume_role" { statement { effect = "Allow" @@ -12,12 +12,18 @@ data "aws_iam_policy_document" "assume_role" { "sts:AssumeRoleWithWebIdentity", "sts:TagSession" ] + + condition { + test = "StringEquals" + variable = "aws:SourceAccount" + values = ["${data.aws_caller_identity.current.account_id}"] + } } } resource "aws_iam_role" "codebuild_service_role" { name = "${local.project}-codebuild-service-role" - assume_role_policy = data.aws_iam_policy_document.assume_role.json + assume_role_policy = data.aws_iam_policy_document.codebuild_assume_role.json } data "aws_iam_policy_document" "codebuild_policy" { From 1998e5c5cb3268905995c5a3238790e5e78fdae8 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 16 Apr 2025 15:39:46 +0100 Subject: [PATCH 06/16] [NRL-1179] Remove context from docker build command in Makefile --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d9b8c420f..fd5336755 100644 --- a/Makefile +++ b/Makefile @@ -78,8 +78,7 @@ build-ci-image: ## Build the CI image @echo "Building the CI image" docker build \ -t nhsd-nrlf-ci-build:latest \ - -f Dockerfile.ci-build \ - . + -f Dockerfile.ci-build ecr-login: ## Login to NRLF ECR repo @echo "Logging into ECR" From 2f5fb4b37b7f481bae58ea56727c84dbcbb77cda Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Wed, 16 Apr 2025 16:37:00 +0100 Subject: [PATCH 07/16] [NRL-1179] Fix naming in daily-build for codebuild runner. Fix perms for pat token access --- .github/workflows/daily-build.yml | 2 +- terraform/account-wide-infrastructure/mgmt/codebuild.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index 1b0c6ecfb..d9ca23001 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -19,7 +19,7 @@ on: jobs: build: name: Build - ${{ github.ref }} - runs-on: codebuild-nhsd-nrlf--ci-build-project-${{ github.run_id }}-${{ github.run_attempt }} + runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }} steps: - name: Git clone - ${{ github.ref }} diff --git a/terraform/account-wide-infrastructure/mgmt/codebuild.tf b/terraform/account-wide-infrastructure/mgmt/codebuild.tf index a1059ce04..7aee98d03 100644 --- a/terraform/account-wide-infrastructure/mgmt/codebuild.tf +++ b/terraform/account-wide-infrastructure/mgmt/codebuild.tf @@ -56,7 +56,7 @@ data "aws_iam_policy_document" "codebuild_policy" { "secretsmanager:ListSecretVersionIds" ] resources = [ - "arn:aws:secretsmanager:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:secret:${local.project}--codebuild-github-pat", + "arn:aws:secretsmanager:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:secret:${local.project}--codebuild-github-pat-*", ] } From ba118845a15eba3a99e6ebef08617bcc3c5063b6 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 17 Apr 2025 08:02:10 +0100 Subject: [PATCH 08/16] [NRL-1179] Add apt upgrade and sudo to ci build Dockerfile --- Dockerfile.ci-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.ci-build b/Dockerfile.ci-build index b14ae8480..1667cd83f 100644 --- a/Dockerfile.ci-build +++ b/Dockerfile.ci-build @@ -1,12 +1,13 @@ FROM ubuntu:22.04 RUN apt update && \ + apt upgrade -y && \ DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \ ca-certificates curl gnupg lsb-release \ build-essential make libssl-dev zlib1g-dev libbz2-dev libreadline-dev \ libsqlite3-dev llvm libncursesw5-dev tk-dev libxml2-dev \ libxmlsec1-dev libffi-dev libicu70 liblzma-dev \ - python3 git curl wget \ + python3 git curl wget sudo \ zip xz-utils tar unzip && \ apt clean && \ rm -rf /var/lib/apt/lists/* From 57e336cc525ca3b6d5cacc4ddb3b49e33b8841e2 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 17 Apr 2025 08:06:32 +0100 Subject: [PATCH 09/16] [NRL-1179] Remove build+login from publish image target in Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fd5336755..e3b194f84 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ ecr-login: ## Login to NRLF ECR repo | docker login --username AWS --password-stdin \ $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com -publish-ci-image: build-ci-image ecr-login ## Publish the CI image +publish-ci-image: ## Publish the CI image @echo "Publishing the CI image" $(eval AWS_REGION := $(shell aws configure get region)) $(eval AWS_ACCOUNT_ID := $(shell aws sts get-caller-identity | jq -r .Account)) From dbdc98583fbfc900015fd4e9eabaa7dfb25378c7 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 17 Apr 2025 08:48:04 +0100 Subject: [PATCH 10/16] [NRL-1179] Remove ASDF from build workflow. Switch ci build image to use ASDF v0.13.1 like previous builds --- .github/workflows/daily-build.yml | 16 ---------------- Dockerfile.ci-build | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index d9ca23001..5386709b1 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -27,22 +27,6 @@ jobs: with: ref: ${{ github.ref }} - - name: Setup asdf cache - uses: actions/cache@v4 - with: - path: ~/.asdf - key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }} - restore-keys: | - ${{ runner.os }}-asdf- - - - name: Install asdf - uses: asdf-vm/actions/install@v3.0.2 - with: - asdf_branch: v0.13.1 - - - name: Install zip - run: sudo apt-get install zip - - name: Setup Python environment run: | poetry install --no-root diff --git a/Dockerfile.ci-build b/Dockerfile.ci-build index 1667cd83f..eebec401e 100644 --- a/Dockerfile.ci-build +++ b/Dockerfile.ci-build @@ -13,7 +13,7 @@ RUN apt update && \ rm -rf /var/lib/apt/lists/* WORKDIR /root -RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.15.0 && \ +RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1 && \ echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc && \ echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc && \ echo "export ASDF_DIR=$HOME/.asdf" >> ~/.bashrc && \ From 2369e29ac3ee0c11409aca8ca9b066e0977bbadc Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Fri, 18 Apr 2025 09:47:47 +0100 Subject: [PATCH 11/16] [NRL-1179] WIP Add some debug into build workflow --- .github/workflows/daily-build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index 5386709b1..9205594af 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -27,10 +27,10 @@ jobs: with: ref: ${{ github.ref }} - - name: Setup Python environment + - name: Setup environment run: | + echo "${HOME}/.asdf/bin" >> $GITHUB_PATH poetry install --no-root - source $(poetry env info --path)/bin/activate - name: Run Linting run: make lint @@ -39,7 +39,13 @@ jobs: run: make test - name: Build Project - run: make build + run: | + echo "PATH: ${PATH}" + echo "HOME: ${HOME}" + echo "python: $(which python)" + echo "asdf: $(which asdf)" + echo "/usr/local/bin: $(ls -la /usr/local/bin)" + make build - name: Configure Management Credentials uses: aws-actions/configure-aws-credentials@v4 From 4622f282ce149ab2d7f77238e2f7743938d3c216 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Tue, 22 Apr 2025 09:28:20 +0100 Subject: [PATCH 12/16] [NRL-1179] Fix linting delays by ignore large notebook file --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6b52d3a9..820d0e44a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: rev: v1.4.0 hooks: - id: detect-secrets - exclude: .pre-commit-config.yaml|layer/psycopg2/.* + exclude: .pre-commit-config.yaml|layer/psycopg2/.*|terraform/account-wide-infrastructure/modules/glue/LogSchemaGeneration/LogSchemaGeneration.ipynb - repo: https://github.com/prettier/pre-commit rev: 57f39166b5a5a504d6808b87ab98d41ebf095b46 From c61f3ba8f6a4c8c97a1647ab6df09fb87be1be43 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Tue, 22 Apr 2025 18:02:24 +0100 Subject: [PATCH 13/16] [NRL-1179] Clear all outputs from LogSchemaGeneration.ipynb notebook --- .pre-commit-config.yaml | 2 +- .../LogSchemaGeneration.ipynb | 60 ++++--------------- 2 files changed, 13 insertions(+), 49 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 820d0e44a..b6b52d3a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: rev: v1.4.0 hooks: - id: detect-secrets - exclude: .pre-commit-config.yaml|layer/psycopg2/.*|terraform/account-wide-infrastructure/modules/glue/LogSchemaGeneration/LogSchemaGeneration.ipynb + exclude: .pre-commit-config.yaml|layer/psycopg2/.* - repo: https://github.com/prettier/pre-commit rev: 57f39166b5a5a504d6808b87ab98d41ebf095b46 diff --git a/terraform/account-wide-infrastructure/modules/glue/LogSchemaGeneration/LogSchemaGeneration.ipynb b/terraform/account-wide-infrastructure/modules/glue/LogSchemaGeneration/LogSchemaGeneration.ipynb index 5ddeada69..0c22ab055 100644 --- a/terraform/account-wide-infrastructure/modules/glue/LogSchemaGeneration/LogSchemaGeneration.ipynb +++ b/terraform/account-wide-infrastructure/modules/glue/LogSchemaGeneration/LogSchemaGeneration.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 104, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -17,7 +17,7 @@ }, { "cell_type": "code", - "execution_count": 105, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": 106, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -69,17 +69,9 @@ }, { "cell_type": "code", - "execution_count": 107, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "2945\n" - ] - } - ], + "outputs": [], "source": [ "# Example usage\n", "log_group = \"searchPostDocumentReference\"\n", @@ -92,35 +84,18 @@ }, { "cell_type": "code", - "execution_count": 108, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 198749c4-9ec5-481a-85ac-488a3f87689b Version: $LATEST\\n'}, {'time': 1736949274.251, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-15 13:54:34,251+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': '*/*', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer TestToken', 'content-type': 'application/json', 'Host': 'dev-1.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\": \"NRLF_DEV_SMOKETESTS\", \"developer.app.id\": \"4e41d2d9-3ef6-48dc-8406-5faba77ffd83\"}', 'NHSD-Connection-Metadata': '{\"nrl.pointer-types\": [], \"nrl.ods-code\": \"SMOKETEST\", \"nrl.ods-code-extension\": null, \"nrl.permissions\": [], \"nrl.app-id\": \"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\", \"nrl.test-event\": false}', 'NHSD-Correlation-Id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'User-Agent': 'python-requests/2.31.0', 'X-Forwarded-For': '18.170.149.105', 'X-Request-Id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.252, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-15 13:54:34,252+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.252, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-15 13:54:34,252+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'headers': {'accept': '*/*', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer TestToken', 'content-type': 'application/json', 'Host': 'dev-1.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\": \"NRLF_DEV_SMOKETESTS\", \"developer.app.id\": \"4e41d2d9-3ef6-48dc-8406-5faba77ffd83\"}', 'NHSD-Connection-Metadata': '{\"nrl.pointer-types\": [], \"nrl.ods-code\": \"SMOKETEST\", \"nrl.ods-code-extension\": null, \"nrl.permissions\": [], \"nrl.app-id\": \"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\", \"nrl.test-event\": false}', 'NHSD-Correlation-Id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'User-Agent': 'python-requests/2.31.0', 'X-Forwarded-For': '18.170.149.105', 'X-Request-Id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.252, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-15 13:54:34,252+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'metadata': {'pointer_types': [], 'ods_code': 'SMOKETEST', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'NRLF_DEV_SMOKETESTS', 'developer_app_id': '4e41d2d9-3ef6-48dc-8406-5faba77ffd83'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.253, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-15 13:54:34,253+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.254, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-15 13:54:34,254+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'pointer_types': ['http://snomed.info/sct|736253002'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.254, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-15 13:54:34,254+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9950000009\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.254, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-15 13:54:34,254+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9950000009', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.705, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-15 13:54:34,705+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.706, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-15 13:54:34,706+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.706, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-15 13:54:34,706+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.706, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-15 13:54:34,706+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.707, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-15 13:54:34,707+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'nhs_number': '9950000009', 'pointer_types': ['http://snomed.info/sct|736253002'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.707, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-15 13:54:34,707+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'nhs_number': '9950000009', 'pointer_types': ['http://snomed.info/sct|736253002'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.707, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-15 13:54:34,707+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key AND begins_with(patient_sort, :patient_sort)', 'ExpressionAttributeValues': {':patient_key': 'P#9950000009', ':patient_sort': 'C#SCT-734163000#T#SCT-736253002'}, 'ReturnConsumedCapacity': 'INDEXES'}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-15 13:54:34,967+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'stats': {'count': 5, 'scanned_count': 5, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-15 13:54:34,968+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'result': {'Items': [{'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:54:27.499Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_0\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:54:27.499Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:54:27.499Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:54:27.499Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:54:27.556Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_1\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:54:27.556Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:54:27.556Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:54:27.556Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:54:27.620Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_2\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:54:27.620Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:54:27.620Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:54:27.620Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:54:27.690Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_3\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:54:27.690Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:54:27.690Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:54:27.690Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:54:27.761Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_4\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:54:27.761Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:54:27.761Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:54:27.761Z'}], 'Count': 5, 'ScannedCount': 5, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 1.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 1.5}}}, 'ResponseMetadata': {'RequestId': 'U7BOL1T1DD0LOP9RRB97386R1VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Wed, 15 Jan 2025 13:54:34 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '12526', 'connection': 'keep-alive', 'x-amzn-requestid': 'U7BOL1T1DD0LOP9RRB97386R1VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '1739171524'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:54:34,968+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:54:34,968+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_0', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:54:34,968+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:54:34,968+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:54:34,969+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_1', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:54:34,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_2', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_3', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:54:34,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:54:34,972+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:54:34,972+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:54:34,972+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_4', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:54:34,972+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.98, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:54:34,980+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:54:34,981+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-15 13:54:34,982+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-15 13:54:34,982+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 5,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9950000009\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_0\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:54:27.499Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:54:27.499Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_1\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:54:27.556Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:54:27.556Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_2\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:54:27.620Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:54:27.620Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_3\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:54:27.690Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:54:27.690Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_4\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:54:27.761Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:54:27.761Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'time': 1736949274.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-15 13:54:34,982+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '198749c4-9ec5-481a-85ac-488a3f87689b', 'correlation_id': 'c97a8a0b-8ab3-4e60-aa3c-03c1d43efc91.smoketest.dev-1.dev', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6787be18-9e72eb2a6c9af81a55f05ff5'}}, {'raw_message': 'END RequestId: 198749c4-9ec5-481a-85ac-488a3f87689b\\n'}, {'raw_message': 'REPORT RequestId: 198749c4-9ec5-481a-85ac-488a3f87689b\\tDuration: 733.83 ms\\tBilled Duration: 734 ms\\tMemory Size: 512 MB\\tMax Memory Used: 131 MB\\tInit Duration: 1308.20 ms\\t\\n'}, {'raw_message': 'START RequestId: f8b9fb92-971e-4f0b-b299-2922cfd21041 Version: $LATEST\\n'}, {'time': 1736949434.817, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-15 13:57:14,817+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': '*/*', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer Fx8b8GyLhQ5ocTwD61e0JsFZKAGN', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.149.105\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"SMOKETEST\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'NHSD-End-User-Organisation-ODS': 'SMOKETEST', 'NHSD-Request-ID': '6f00a99a-991d-4e51-ad3a-88f67570537d', 'User-Agent': 'python-requests/2.31.0', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'X-Request-Id': '6f00a99a-991d-4e51-ad3a-88f67570537d'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'headers': {'accept': '*/*', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer Fx8b8GyLhQ5ocTwD61e0JsFZKAGN', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.149.105\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"SMOKETEST\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'NHSD-End-User-Organisation-ODS': 'SMOKETEST', 'NHSD-Request-ID': '6f00a99a-991d-4e51-ad3a-88f67570537d', 'User-Agent': 'python-requests/2.31.0', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'X-Request-Id': '6f00a99a-991d-4e51-ad3a-88f67570537d'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'metadata': {'pointer_types': [], 'ods_code': 'SMOKETEST', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'NRL', 'developer_app_id': '63e8f52c-e4cc-4d54-970c-2950d9f517ed'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'pointer_types': ['http://snomed.info/sct|736253002'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9950000009\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-15 13:57:14,818+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9950000009', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-15 13:57:14,819+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-15 13:57:14,819+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-15 13:57:14,819+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-15 13:57:14,819+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-15 13:57:14,819+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'nhs_number': '9950000009', 'pointer_types': ['http://snomed.info/sct|736253002'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-15 13:57:14,819+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'nhs_number': '9950000009', 'pointer_types': ['http://snomed.info/sct|736253002'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-15 13:57:14,820+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key AND begins_with(patient_sort, :patient_sort)', 'ExpressionAttributeValues': {':patient_key': 'P#9950000009', ':patient_sort': 'C#SCT-734163000#T#SCT-736253002'}, 'ReturnConsumedCapacity': 'INDEXES'}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.966, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-15 13:57:14,966+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'stats': {'count': 5, 'scanned_count': 5, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.966, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-15 13:57:14,966+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'result': {'Items': [{'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:57:13.314Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_0\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:57:13.314Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:57:13.314Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:57:13.314Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:57:13.497Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_1\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:57:13.497Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:57:13.497Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:57:13.497Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:57:13.708Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_2\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:57:13.708Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:57:13.708Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:57:13.708Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:57:13.857Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_3\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:57:13.857Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:57:13.857Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:57:13.857Z'}, {'nhs_number': '9950000009', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'SMOKETEST', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9950000009', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-15T13:57:14.000Z#D#SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'pk': 'D#SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"SMOKETEST-smoketest_consumer_count_search_read_pointer_4\",\"meta\":{\"lastUpdated\":\"2025-01-15T13:57:14.000Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9950000009\"}},\"date\":\"2025-01-15T13:57:14.000Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"SMOKETEST\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"224891009\",\"display\":\"Healthcare services\"}]}}}', 'custodian': 'SMOKETEST', 'author': 'SMOKETEST', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-15T13:57:14.000Z'}], 'Count': 5, 'ScannedCount': 5, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 1.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 1.5}}}, 'ResponseMetadata': {'RequestId': 'MNED7QS40P6J7HAUUVFH0FVB3VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Wed, 15 Jan 2025 13:57:14 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '12526', 'connection': 'keep-alive', 'x-amzn-requestid': 'MNED7QS40P6J7HAUUVFH0FVB3VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '1455652882'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.966, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:57:14,966+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.966, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:57:14,966+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_0', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.966, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:57:14,966+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.966, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:57:14,966+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:57:14,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_0', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:57:14,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:57:14,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_1', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:57:14,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:57:14,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:57:14,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_1', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:57:14,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:57:14,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_2', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:57:14,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:57:14,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:57:14,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_2', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_3', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_3', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'producer_id': 'SMOKETEST', 'document_id': 'smoketest_consumer_count_search_read_pointer_4', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-15 13:57:14,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-15 13:57:14,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'custodian': 'SMOKETEST', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-15 13:57:14,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'id': 'SMOKETEST-smoketest_consumer_count_search_read_pointer_4', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-15 13:57:14,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-15 13:57:14,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 5,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9950000009\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_0\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:57:13.314Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:57:13.314Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_1\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:57:13.497Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:57:13.497Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_2\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:57:13.708Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:57:13.708Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_3\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:57:13.857Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:57:13.857Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"SMOKETEST-smoketest_consumer_count_search_read_pointer_4\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-15T13:57:14.000Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9950000009\"\\n }\\n },\\n \"date\": \"2025-01-15T13:57:14.000Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"SMOKETEST\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://testing.record-locator.national.nhs.uk/_smoke_test_pointer_content\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"224891009\",\\n \"display\": \"Healthcare services\"\\n }\\n ]\\n }\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'time': 1736949434.98, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-15 13:57:14,980+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f8b9fb92-971e-4f0b-b299-2922cfd21041', 'correlation_id': '6f00a99a-991d-4e51-ad3a-88f67570537d..rrt-2133978156520042406-c-geu2-1920269-18397883-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6787beba-554ddbb709d8dc9cfeaccea6'}}, {'raw_message': 'END RequestId: f8b9fb92-971e-4f0b-b299-2922cfd21041\\n'}, {'raw_message': 'REPORT RequestId: f8b9fb92-971e-4f0b-b299-2922cfd21041\\tDuration: 165.88 ms\\tBilled Duration: 166 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-6787beba-554ddbb709d8dc9cfeaccea6\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 0132333b-d661-4645-914a-91bc0f59f6bb Version: $LATEST\\n'}, {'time': 1737030722.457, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 12:32:02,457+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer kmn9JcwFVRNMmFvINGv8HKuf1yny', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '57c6f214-e543-4d6c-bee1-7b2c167460c9', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'a8fde099-679f-490c-8114-43e53a3ac326', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '57c6f214-e543-4d6c-bee1-7b2c167460c9'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.458, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 12:32:02,458+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.458, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 12:32:02,458+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer kmn9JcwFVRNMmFvINGv8HKuf1yny', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '57c6f214-e543-4d6c-bee1-7b2c167460c9', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'a8fde099-679f-490c-8114-43e53a3ac326', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '57c6f214-e543-4d6c-bee1-7b2c167460c9'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.458, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 12:32:02,458+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 12:32:02,459+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'ERROR', 'location': 'wrapper:257', 'message': 'An error occurred whilst pasrsing embedded permissions files from S3', 'timestamp': '2025-01-16 12:32:02,459+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'error': \"[Errno 2] No such file or directory: '/opt/python/nrlf_permissions/X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json'\", 'log_reference': 'S3PERMISSIONS005', 'exception': 'Traceback (most recent call last):\\n File \"/opt/python/nrlf/core/authoriser.py\", line 80, in parse_permissions_file\\n with open(file_path) as file:\\n ^^^^^^^^^^^^^^^\\nFileNotFoundError: [Errno 2] No such file or directory: \\'/opt/python/nrlf_permissions/X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json\\'', 'exception_name': 'FileNotFoundError', 'stack_trace': {'type': 'FileNotFoundError', 'value': \"[Errno 2] No such file or directory: '/opt/python/nrlf_permissions/X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json'\", 'module': 'builtins', 'frames': [{'file': '/opt/python/nrlf/core/authoriser.py', 'line': 80, 'function': 'parse_permissions_file', 'statement': 'with open(file_path) as file:'}]}, 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:152', 'message': 'Authorisation lookup enabled', 'timestamp': '2025-01-16 12:32:02,459+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'log_reference': 'HANDLER004', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030722.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'get_pointer_types:27', 'message': 'Retrieving pointer types from S3 bucket', 'timestamp': '2025-01-16 12:32:02,460+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'bucket': 'nhsd-nrlf--dev-authorization-store', 'key': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json', 'log_reference': 'S3PERMISSIONS001', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'get_pointer_types:33', 'message': 'Retrieved list of pointer types from S3', 'timestamp': '2025-01-16 12:32:03,154+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'S3PERMISSIONS002', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 12:32:03,154+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 12:32:03,154+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.155, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 12:32:03,155+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.285, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 12:32:03,285+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.285, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 12:32:03,285+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.285, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 12:32:03,285+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.285, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 12:32:03,285+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.286, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 12:32:03,286+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.286, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 12:32:03,286+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.286, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 12:32:03,286+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'http://snomed.info/sct|1363501000000100', ':type_2': 'http://snomed.info/sct|1382601000000107', ':type_3': 'http://snomed.info/sct|325691000000100', ':type_4': 'http://snomed.info/sct|736373009', ':type_5': 'http://snomed.info/sct|861421000000109', ':type_6': 'http://snomed.info/sct|887701000000100', ':type_7': 'http://snomed.info/sct|24761000000103', ':type_8': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 12:32:03,488+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'stats': {'count': 0, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 12:32:03,489+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'result': {'Items': [], 'Count': 0, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'K7UFPJU081OB7N40GDIJDRUH3JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 12:32:03 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '217', 'connection': 'keep-alive', 'x-amzn-requestid': 'K7UFPJU081OB7N40GDIJDRUH3JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '750078278'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 12:32:03,489+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 12:32:03,489+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 0,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": []\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'time': 1737030723.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 12:32:03,489+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '0132333b-d661-4645-914a-91bc0f59f6bb', 'correlation_id': '57c6f214-e543-4d6c-bee1-7b2c167460c9.a8fde099-679f-490c-8114-43e53a3ac326.rrt-8389882276964590663-a-geu2-351082-20556766-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6788fc40-48a8386a3b308296208ca386'}}, {'raw_message': 'END RequestId: 0132333b-d661-4645-914a-91bc0f59f6bb\\n'}, {'raw_message': 'REPORT RequestId: 0132333b-d661-4645-914a-91bc0f59f6bb\\tDuration: 1034.54 ms\\tBilled Duration: 1035 ms\\tMemory Size: 512 MB\\tMax Memory Used: 136 MB\\tInit Duration: 1300.16 ms\\t\\nXRAY TraceId: 1-6788fc40-48a8386a3b308296208ca386\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 5666e019-1d6e-4052-b01d-010221c644b4 Version: $LATEST\\n'}, {'time': 1737030847.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 12:34:07,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 5o9G6AHFqUsfT114NhPdXXRy2EWm', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '4241c938-5185-43e6-8058-3811d04fb222', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '4241c938-5185-43e6-8058-3811d04fb222'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 12:34:07,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 12:34:07,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 5o9G6AHFqUsfT114NhPdXXRy2EWm', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '4241c938-5185-43e6-8058-3811d04fb222', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '4241c938-5185-43e6-8058-3811d04fb222'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 12:34:07,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 12:34:07,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'ERROR', 'location': 'wrapper:257', 'message': 'An error occurred whilst pasrsing embedded permissions files from S3', 'timestamp': '2025-01-16 12:34:07,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'error': \"[Errno 2] No such file or directory: '/opt/python/nrlf_permissions/X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json'\", 'log_reference': 'S3PERMISSIONS005', 'exception': 'Traceback (most recent call last):\\n File \"/opt/python/nrlf/core/authoriser.py\", line 80, in parse_permissions_file\\n with open(file_path) as file:\\n ^^^^^^^^^^^^^^^\\nFileNotFoundError: [Errno 2] No such file or directory: \\'/opt/python/nrlf_permissions/X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json\\'', 'exception_name': 'FileNotFoundError', 'stack_trace': {'type': 'FileNotFoundError', 'value': \"[Errno 2] No such file or directory: '/opt/python/nrlf_permissions/X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json'\", 'module': 'builtins', 'frames': [{'file': '/opt/python/nrlf/core/authoriser.py', 'line': 80, 'function': 'parse_permissions_file', 'statement': 'with open(file_path) as file:'}]}, 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:152', 'message': 'Authorisation lookup enabled', 'timestamp': '2025-01-16 12:34:07,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'log_reference': 'HANDLER004', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'get_pointer_types:27', 'message': 'Retrieving pointer types from S3 bucket', 'timestamp': '2025-01-16 12:34:07,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'bucket': 'nhsd-nrlf--dev-authorization-store', 'key': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e/W4V6Q.json', 'log_reference': 'S3PERMISSIONS001', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'get_pointer_types:33', 'message': 'Retrieved list of pointer types from S3', 'timestamp': '2025-01-16 12:34:07,581+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'S3PERMISSIONS002', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 12:34:07,581+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 12:34:07,581+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 12:34:07,581+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 12:34:07,582+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 12:34:07,582+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 12:34:07,582+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 12:34:07,582+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 12:34:07,582+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.583, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 12:34:07,583+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.583, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 12:34:07,583+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'http://snomed.info/sct|1363501000000100', ':type_2': 'http://snomed.info/sct|1382601000000107', ':type_3': 'http://snomed.info/sct|325691000000100', ':type_4': 'http://snomed.info/sct|736373009', ':type_5': 'http://snomed.info/sct|861421000000109', ':type_6': 'http://snomed.info/sct|887701000000100', ':type_7': 'http://snomed.info/sct|24761000000103', ':type_8': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.719, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 12:34:07,719+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'stats': {'count': 0, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.719, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 12:34:07,719+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'result': {'Items': [], 'Count': 0, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'OBCBOB07JVD328A332EDBC97MFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 12:34:07 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '217', 'connection': 'keep-alive', 'x-amzn-requestid': 'OBCBOB07JVD328A332EDBC97MFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '750078278'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.72, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 12:34:07,720+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.72, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 12:34:07,720+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 0,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": []\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'time': 1737030847.72, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 12:34:07,720+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '5666e019-1d6e-4052-b01d-010221c644b4', 'correlation_id': '4241c938-5185-43e6-8058-3811d04fb222.f4b9f4b2-17d8-4fc9-8d6c-6eed2e4f5a95.rrt-7714091047207434907-a-geu2-1763300-20785912-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6788fcbf-11d3eb3d329998986d8525f5'}}, {'raw_message': 'END RequestId: 5666e019-1d6e-4052-b01d-010221c644b4\\n'}, {'raw_message': 'REPORT RequestId: 5666e019-1d6e-4052-b01d-010221c644b4\\tDuration: 295.38 ms\\tBilled Duration: 296 ms\\tMemory Size: 512 MB\\tMax Memory Used: 136 MB\\t\\nXRAY TraceId: 1-6788fcbf-11d3eb3d329998986d8525f5\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 310ecbd4-d2ca-42cd-b3c0-805d0b63096a Version: $LATEST\\n'}, {'time': 1737034114.312, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 13:28:34,312+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer KjKOs5TVW4xcCI2IDtne8HiRuSOl', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '3b1212de-7375-4a8e-b947-3265346a1389', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.313, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 13:28:34,313+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.313, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 13:28:34,313+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer KjKOs5TVW4xcCI2IDtne8HiRuSOl', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '3b1212de-7375-4a8e-b947-3265346a1389', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.313, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 13:28:34,313+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.313, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 13:28:34,313+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.314, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 13:28:34,314+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.314, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 13:28:34,314+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.315, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 13:28:34,315+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.815, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 13:28:34,815+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.816, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 13:28:34,816+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.816, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 13:28:34,816+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.816, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 13:28:34,816+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.817, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 13:28:34,817+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.817, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 13:28:34,817+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034114.817, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 13:28:34,817+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.085, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 13:28:35,085+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.085, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 13:28:35,085+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'GRPIIGTO488VCGRQAD9N5U6T87VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 13:28:34 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'GRPIIGTO488VCGRQAD9N5U6T87VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.09, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,090+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.09, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,090+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.09, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,090+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.09, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,090+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.09, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,090+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.091, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,091+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.091, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,091+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.091, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,091+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.091, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,091+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.091, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,091+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.091, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,091+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:28:35,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:28:35,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:28:35,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:28:35,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:28:35,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.112, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 13:28:35,112+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.112, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 13:28:35,112+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'time': 1737034115.113, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 13:28:35,113+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '310ecbd4-d2ca-42cd-b3c0-805d0b63096a', 'correlation_id': '2dcbaaf0-1710-4698-8a1d-b7f42abdc707.3b1212de-7375-4a8e-b947-3265346a1389.rrt-3988340787763075059-c-geu2-3545628-20278322-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67890980-798a30281a28f5cd27c67503'}}, {'raw_message': 'END RequestId: 310ecbd4-d2ca-42cd-b3c0-805d0b63096a\\n'}, {'raw_message': 'REPORT RequestId: 310ecbd4-d2ca-42cd-b3c0-805d0b63096a\\tDuration: 805.30 ms\\tBilled Duration: 806 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1519.15 ms\\t\\nXRAY TraceId: 1-67890980-798a30281a28f5cd27c67503\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 74e6f406-f15a-4fac-b9d6-34ce983c73e1 Version: $LATEST\\n'}, {'time': 1737034823.345, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 13:40:23,345+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 1AAqNyBCG3raNl4k3FALXHYTV6C2', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '6f969984-55b5-4775-9b8c-d943038cc717', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.346, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 13:40:23,346+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.346, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 13:40:23,346+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 1AAqNyBCG3raNl4k3FALXHYTV6C2', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"3.10.167.180\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '6f969984-55b5-4775-9b8c-d943038cc717', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.346, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 13:40:23,346+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.346, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 13:40:23,346+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.347, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 13:40:23,347+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.347, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 13:40:23,347+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.348, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 13:40:23,348+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 13:40:23,818+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 13:40:23,818+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 13:40:23,818+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.818, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 13:40:23,818+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 13:40:23,819+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 13:40:23,819+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034823.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 13:40:23,820+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 13:40:24,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 13:40:24,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'PC77JJ3VNDKABDK4JF4APT75BRVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 13:40:23 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'PC77JJ3VNDKABDK4JF4APT75BRVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.085, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,085+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.086, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,086+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.087, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,087+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.087, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,087+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.087, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,087+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.087, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,087+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.087, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,087+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.088, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,088+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.089, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,089+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 13:40:24,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 13:40:24,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 13:40:24,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 13:40:24,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.096, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 13:40:24,096+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.114, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 13:40:24,114+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.115, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 13:40:24,115+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'time': 1737034824.115, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 13:40:24,115+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '74e6f406-f15a-4fac-b9d6-34ce983c73e1', 'correlation_id': 'ce64b727-8f92-4070-ae11-55aa7a8f97d9.6f969984-55b5-4775-9b8c-d943038cc717.rrt-5266613670261413586-a-geu2-72047-1151325-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67890c45-a3c1032f2588f0d215532871'}}, {'raw_message': 'END RequestId: 74e6f406-f15a-4fac-b9d6-34ce983c73e1\\n'}, {'raw_message': 'REPORT RequestId: 74e6f406-f15a-4fac-b9d6-34ce983c73e1\\tDuration: 790.50 ms\\tBilled Duration: 791 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1540.38 ms\\t\\nXRAY TraceId: 1-67890c45-a3c1032f2588f0d215532871\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26 Version: $LATEST\\n'}, {'time': 1737035853.689, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 13:57:33,689+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 9QzNjuIMhs2H5NjV96MKs2JUGDAn', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '0b74d081-6361-42e5-acf0-94868d91cfea', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.689, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 13:57:33,689+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 13:57:33,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 9QzNjuIMhs2H5NjV96MKs2JUGDAn', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '0b74d081-6361-42e5-acf0-94868d91cfea', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 13:57:33,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 13:57:33,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 13:57:33,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 13:57:33,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|721981007\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035853.692, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 13:57:33,692+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|721981007', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 13:57:34,191+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 13:57:34,191+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 13:57:34,191+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 13:57:34,192+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:41', 'message': 'Invalid NHS number provided in the request body', 'timestamp': '2025-01-16 13:57:34,192+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'subject_identifier': \"root='https://fhir.nhs.uk/Id/nhs-number|721981007'\", 'log_reference': 'CONPOSTSEARCH001', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 13:57:34,192+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'status_code': '400', 'response': {'statusCode': '400', 'body': '{\\n \"resourceType\": \"OperationOutcome\",\\n \"issue\": [\\n {\\n \"severity\": \"error\",\\n \"code\": \"invalid\",\\n \"details\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1\",\\n \"code\": \"INVALID_NHS_NUMBER\",\\n \"display\": \"Invalid NHS number\"\\n }\\n ]\\n },\\n \"diagnostics\": \"A valid NHS number is required to search for document references\",\\n \"expression\": [\\n \"subject:identifier\"\\n ]\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'time': 1737035854.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 13:57:34,193+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26', 'correlation_id': '3e67845c-7a0a-48d5-94bd-9e5fd1425d57.0b74d081-6361-42e5-acf0-94868d91cfea.rrt-8389882276964590663-a-geu2-351082-20708166-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6789104b-1cfd7e9696deda8f5553c853'}}, {'raw_message': 'END RequestId: c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26\\n'}, {'raw_message': 'REPORT RequestId: c2a5b0f3-3eba-47d2-82e4-aabd80e7fd26\\tDuration: 520.62 ms\\tBilled Duration: 521 ms\\tMemory Size: 512 MB\\tMax Memory Used: 128 MB\\tInit Duration: 1507.92 ms\\t\\n'}, {'raw_message': 'START RequestId: c86eb2eb-e0d2-4464-be41-9f322528b383 Version: $LATEST\\n'}, {'time': 1737036042.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:00:42,451+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer VToz7NTohKHdqIQczl6L3pMATmGc', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '520091c9-b74e-4529-80ad-679cc77e3a65', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:00:42,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:00:42,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer VToz7NTohKHdqIQczl6L3pMATmGc', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '520091c9-b74e-4529-80ad-679cc77e3a65', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:00:42,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:00:42,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:00:42,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:00:42,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:00:42,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:00:42,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:00:42,712+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:00:42,712+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'LUP5LT84PQHQCTENQ4OEI8V12JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:00:42 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'LUP5LT84PQHQCTENQ4OEI8V12JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,713+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,713+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,713+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,713+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,715+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,715+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,715+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,715+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,715+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,716+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,716+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,716+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,716+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,716+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,729+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,729+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,729+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,729+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,729+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,730+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,730+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,730+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,730+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,730+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,731+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,731+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,731+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,731+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,731+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,732+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:00:42,732+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:00:42,732+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:00:42,732+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:00:42,732+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.733, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:00:42,733+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.735, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:00:42,735+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.735, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:00:42,735+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'time': 1737036042.736, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:00:42,736+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'c86eb2eb-e0d2-4464-be41-9f322528b383', 'correlation_id': 'fa57d9e3-5478-4a0d-b320-8b6aab43cef0.520091c9-b74e-4529-80ad-679cc77e3a65.rrt-3057173199177491261-a-geu2-2406962-20778153-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6789110a-a4f77fbd15584ac11ac65d66'}}, {'raw_message': 'END RequestId: c86eb2eb-e0d2-4464-be41-9f322528b383\\n'}, {'raw_message': 'REPORT RequestId: c86eb2eb-e0d2-4464-be41-9f322528b383\\tDuration: 302.08 ms\\tBilled Duration: 303 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-6789110a-a4f77fbd15584ac11ac65d66\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: ead15e3c-e185-427c-93c6-8799ca83a707 Version: $LATEST\\n'}, {'time': 1737036106.395, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:01:46,395+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer h7R2GrsahUOZXSHTvcAsCEvMZG7y', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '76040e56-249c-4690-ba4b-bc40936628ea', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '827f7ff9-a53d-45da-be11-8d743386c8fb', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '76040e56-249c-4690-ba4b-bc40936628ea'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.395, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:01:46,395+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.395, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:01:46,395+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer h7R2GrsahUOZXSHTvcAsCEvMZG7y', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '76040e56-249c-4690-ba4b-bc40936628ea', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '827f7ff9-a53d-45da-be11-8d743386c8fb', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '76040e56-249c-4690-ba4b-bc40936628ea'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:01:46,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:01:46,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:01:46,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:01:46,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:01:46,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:01:46,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:01:46,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:01:46,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:01:46,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:01:46,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:01:46,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:01:46,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.555, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:01:46,555+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.555, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:01:46,555+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': '82HHT6JSC8IB5U22F7VUJTI6JFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:01:46 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': '82HHT6JSC8IB5U22F7VUJTI6JFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.556, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,556+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.556, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,556+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.556, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,556+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.556, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,556+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.557, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,557+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.557, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,557+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.557, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,557+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.557, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,557+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.557, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,557+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.558, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,558+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.558, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,558+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.558, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,558+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.558, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,558+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.558, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,558+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,559+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,559+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,559+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,559+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,559+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,559+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,560+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,560+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,560+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,560+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,560+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,560+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,561+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.569, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,569+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.569, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,569+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.57, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,570+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.57, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:01:46,570+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.57, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:01:46,570+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.57, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:01:46,570+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.57, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:01:46,570+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.57, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:01:46,570+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.572, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:01:46,572+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.572, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:01:46,572+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'time': 1737036106.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:01:46,589+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'ead15e3c-e185-427c-93c6-8799ca83a707', 'correlation_id': '76040e56-249c-4690-ba4b-bc40936628ea.827f7ff9-a53d-45da-be11-8d743386c8fb.rrt-4291318045794731592-c-geu2-1159942-20490116-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6789114a-51d4b2a8780487f85fcfc564'}}, {'raw_message': 'END RequestId: ead15e3c-e185-427c-93c6-8799ca83a707\\n'}, {'raw_message': 'REPORT RequestId: ead15e3c-e185-427c-93c6-8799ca83a707\\tDuration: 198.21 ms\\tBilled Duration: 199 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'START RequestId: 7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe Version: $LATEST\\n'}, {'time': 1737036182.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:03:02,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer cIMeK8VPgamlETH6g4bMF8zZ5vSj', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '486dd115-51a4-4905-8350-5ad42b753622', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:03:02,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:03:02,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer cIMeK8VPgamlETH6g4bMF8zZ5vSj', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '486dd115-51a4-4905-8350-5ad42b753622', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:03:02,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:03:02,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:03:02,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:03:02,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:03:02,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:03:02,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:03:02,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:03:02,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:03:02,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:03:02,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:03:02,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:03:02,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:03:02,451+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:03:02,451+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'O62VQQFLH1M5AFEL2J9AIJFO8RVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:03:02 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'O62VQQFLH1M5AFEL2J9AIJFO8RVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.457, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,457+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.469, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,469+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.47, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:03:02,470+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.47, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:03:02,470+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.47, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:03:02,470+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.47, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:03:02,470+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.47, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:03:02,470+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.472, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:03:02,472+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.472, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:03:02,472+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'time': 1737036182.473, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:03:02,473+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe', 'correlation_id': 'e57ad4c0-44a8-483f-8303-4c4a4add58f4.486dd115-51a4-4905-8350-5ad42b753622.rrt-3988340787763075059-c-geu2-3545629-20337059-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891196-56a046157eb9e03588083ef3'}}, {'raw_message': 'END RequestId: 7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe\\n'}, {'raw_message': 'REPORT RequestId: 7a9bba83-5364-4ef9-b1fb-ab9ee9de9fbe\\tDuration: 56.30 ms\\tBilled Duration: 57 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891196-56a046157eb9e03588083ef3\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 89e7be28-9524-4d0c-abb7-ca5b67b9fd12 Version: $LATEST\\n'}, {'time': 1737036310.37, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:05:10,370+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 9T2rdA9HabKMq9ukn0Eo294Mpu7z', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '303fc56b-8255-49ad-87d5-6c25172347cc', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'd0b3764c-2f99-4014-978c-4eaa1ba975a0', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '303fc56b-8255-49ad-87d5-6c25172347cc'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.37, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:05:10,370+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.37, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:05:10,370+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 9T2rdA9HabKMq9ukn0Eo294Mpu7z', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '303fc56b-8255-49ad-87d5-6c25172347cc', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'd0b3764c-2f99-4014-978c-4eaa1ba975a0', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '303fc56b-8255-49ad-87d5-6c25172347cc'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:05:10,371+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:05:10,371+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:05:10,371+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:05:10,371+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:05:10,371+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:05:10,371+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.372, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:05:10,372+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.372, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:05:10,372+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.372, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:05:10,372+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.372, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:05:10,372+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.372, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:05:10,372+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.373, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:05:10,373+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.532, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:05:10,532+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.533, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:05:10,533+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'T25PPKKA2BQS52GECP97TLJ7L7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:05:10 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'T25PPKKA2BQS52GECP97TLJ7L7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.533, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,533+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.533, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,533+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.533, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,533+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.534, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,534+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.534, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,534+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.534, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,534+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.534, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,534+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.534, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,534+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.535, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,535+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.535, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,535+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.535, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,535+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.535, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,535+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.535, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,535+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.535, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,535+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.536, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,536+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.536, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,536+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.536, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,536+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.536, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,536+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.536, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,536+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.537, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,537+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.537, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,537+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.537, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,537+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.537, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,537+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.537, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,537+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.55, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,550+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.55, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,550+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.55, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,550+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.55, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,550+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.55, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,550+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.551, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,551+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.551, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:05:10,551+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.551, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:05:10,551+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.551, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:05:10,551+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.551, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:05:10,551+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.552, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:05:10,552+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.553, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:05:10,553+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.553, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:05:10,553+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'time': 1737036310.554, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:05:10,554+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '89e7be28-9524-4d0c-abb7-ca5b67b9fd12', 'correlation_id': '303fc56b-8255-49ad-87d5-6c25172347cc.d0b3764c-2f99-4014-978c-4eaa1ba975a0.rrt-5970497585328267711-a-geu2-1700662-21189363-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891216-651b9a55a105888e2a33012c'}}, {'raw_message': 'END RequestId: 89e7be28-9524-4d0c-abb7-ca5b67b9fd12\\n'}, {'raw_message': 'REPORT RequestId: 89e7be28-9524-4d0c-abb7-ca5b67b9fd12\\tDuration: 201.40 ms\\tBilled Duration: 202 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'START RequestId: 4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3 Version: $LATEST\\n'}, {'time': 1737036376.396, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:06:16,396+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer vn8qu7V2qrRn14aAKHpjIJBB8Yv5', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'eb001de1-43e8-4cde-894c-06ae7e866e99', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '3f192448-b12b-43ed-b886-4d51929426df', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'eb001de1-43e8-4cde-894c-06ae7e866e99'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:06:16,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:06:16,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer vn8qu7V2qrRn14aAKHpjIJBB8Yv5', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'eb001de1-43e8-4cde-894c-06ae7e866e99', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '3f192448-b12b-43ed-b886-4d51929426df', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'eb001de1-43e8-4cde-894c-06ae7e866e99'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:06:16,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.397, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:06:16,397+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:06:16,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:06:16,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:06:16,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:06:16,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:06:16,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.398, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:06:16,398+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.399, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:06:16,399+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.399, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:06:16,399+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.399, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:06:16,399+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.399, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:06:16,399+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.411, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:06:16,411+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.411, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:06:16,411+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': '797C2RM4OD60JK0LDNDQQU11AJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:06:16 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': '797C2RM4OD60JK0LDNDQQU11AJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.412, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,412+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.412, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,412+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.412, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,412+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.412, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,412+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.413, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,413+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.413, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,413+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.413, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,413+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.413, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,413+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.413, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,413+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.414, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,414+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.414, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,414+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.414, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,414+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.414, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,414+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.414, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,414+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:06:16,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:06:16,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:06:16,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.432, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:06:16,432+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.432, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:06:16,432+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'time': 1737036376.433, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:06:16,433+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3', 'correlation_id': 'eb001de1-43e8-4cde-894c-06ae7e866e99.3f192448-b12b-43ed-b886-4d51929426df.rrt-4443860213097515606-b-geu2-72160-3890211-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891258-5baeecefd8f3c059984f2421'}}, {'raw_message': 'END RequestId: 4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3\\n'}, {'raw_message': 'REPORT RequestId: 4f28fd60-a240-4ccd-8b98-9d0ff9e45eb3\\tDuration: 57.48 ms\\tBilled Duration: 58 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 19be5d5d-b58e-4bef-a48e-d9a894cfafb3 Version: $LATEST\\n'}, {'time': 1737036981.35, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:16:21,350+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer q6Ky33MNrsVANyAD940r2L3f3OqK', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '69d29acd-98b8-4b94-86e9-c887df4c2d9c', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.351, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:16:21,351+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.351, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:16:21,351+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer q6Ky33MNrsVANyAD940r2L3f3OqK', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '69d29acd-98b8-4b94-86e9-c887df4c2d9c', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.351, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:16:21,351+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.351, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:16:21,351+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.352, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:16:21,352+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.352, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:16:21,352+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.353, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:16:21,353+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.849, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:16:21,849+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.849, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:16:21,849+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.849, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:16:21,849+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.849, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:16:21,849+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.85, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:16:21,850+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.85, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:16:21,850+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036981.851, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:16:21,851+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.132, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:16:22,132+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.133, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:16:22,133+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'QQL317Q4B4CRV84BUQ4TS72QOJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:16:22 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'QQL317Q4B4CRV84BUQ4TS72QOJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.133, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,133+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.133, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,133+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.133, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,133+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.133, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,133+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.136, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,136+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.136, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,136+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.136, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,136+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.136, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,136+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.136, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,136+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,144+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:22,144+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:22,144+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:22,144+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:22,144+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.145, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:22,145+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.147, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:16:22,147+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.147, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:16:22,147+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'time': 1737036982.164, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:16:22,164+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '19be5d5d-b58e-4bef-a48e-d9a894cfafb3', 'correlation_id': 'f055c7b5-fab9-480d-baf5-eb7b55b5aed8.69d29acd-98b8-4b94-86e9-c887df4c2d9c.rrt-8290860736497172627-a-geu2-72042-1039990-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678914b3-cf92ddf9cbcfa6e3a8f7df92'}}, {'raw_message': 'END RequestId: 19be5d5d-b58e-4bef-a48e-d9a894cfafb3\\n'}, {'raw_message': 'REPORT RequestId: 19be5d5d-b58e-4bef-a48e-d9a894cfafb3\\tDuration: 835.06 ms\\tBilled Duration: 836 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1568.32 ms\\t\\nXRAY TraceId: 1-678914b3-cf92ddf9cbcfa6e3a8f7df92\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 3f7fcf52-fe8a-4019-a76a-2713fe120833 Version: $LATEST\\n'}, {'time': 1737036983.188, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:16:23,188+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 8bliYAKlYsNfNe5bePi1vMB1TbH9', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '70f55fd2-845d-49ad-b283-b78608cf43cf', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '18b43fef-2298-40e5-9d75-37610abf0046', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '70f55fd2-845d-49ad-b283-b78608cf43cf'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.189, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:16:23,189+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.189, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:16:23,189+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 8bliYAKlYsNfNe5bePi1vMB1TbH9', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '70f55fd2-845d-49ad-b283-b78608cf43cf', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '18b43fef-2298-40e5-9d75-37610abf0046', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '70f55fd2-845d-49ad-b283-b78608cf43cf'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.189, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:16:23,189+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.189, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:16:23,189+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.189, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:16:23,189+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:16:23,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:16:23,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:16:23,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:16:23,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:16:23,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:16:23,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:16:23,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:16:23,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:16:23,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.199, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:16:23,199+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.199, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:16:23,199+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'IJSOV6NOFOKIU4GJAMAD4QSJ9RVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:16:23 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'IJSOV6NOFOKIU4GJAMAD4QSJ9RVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.203, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,203+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.204, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,204+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.204, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,204+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.204, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,204+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.204, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,204+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.205, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,205+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.205, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,205+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.205, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,205+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.205, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,205+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.205, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,205+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.206, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,206+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.206, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,206+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.206, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,206+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.206, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,206+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.207, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,207+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.207, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,207+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.207, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,207+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.207, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,207+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.207, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,207+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.224, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,224+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.224, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,224+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.224, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,224+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.224, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,224+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.224, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,224+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.225, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,225+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.225, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,225+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.225, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,225+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.226, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,226+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.226, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,226+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.226, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,226+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.226, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:16:23,226+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.226, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:16:23,226+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:16:23,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:16:23,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:16:23,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.229, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:16:23,229+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.229, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:16:23,229+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'time': 1737036983.229, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:16:23,229+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '3f7fcf52-fe8a-4019-a76a-2713fe120833', 'correlation_id': '70f55fd2-845d-49ad-b283-b78608cf43cf.18b43fef-2298-40e5-9d75-37610abf0046.rrt-8389882276964590663-a-geu2-351083-20740172-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678914b7-f931b2df69585444d9679aa1'}}, {'raw_message': 'END RequestId: 3f7fcf52-fe8a-4019-a76a-2713fe120833\\n'}, {'raw_message': 'REPORT RequestId: 3f7fcf52-fe8a-4019-a76a-2713fe120833\\tDuration: 57.72 ms\\tBilled Duration: 58 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-678914b7-f931b2df69585444d9679aa1\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: bbc4733d-774e-4896-b16c-bafca7b25852 Version: $LATEST\\n'}, {'time': 1737037591.839, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:26:31,839+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 43ijXMgubRpkXIA4ruLpM4n7D6AH', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '6135abaa-47fa-44ee-9f14-f80e06be30a4', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '9851843e-443a-4a65-9779-03654e0cfdad', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '6135abaa-47fa-44ee-9f14-f80e06be30a4'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:26:31,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:26:31,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 43ijXMgubRpkXIA4ruLpM4n7D6AH', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '6135abaa-47fa-44ee-9f14-f80e06be30a4', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '9851843e-443a-4a65-9779-03654e0cfdad', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '6135abaa-47fa-44ee-9f14-f80e06be30a4'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:26:31,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:26:31,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:26:31,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:26:31,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037591.842, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:26:31,842+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.337, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:26:32,337+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.337, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:26:32,337+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.338, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:26:32,338+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.338, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:26:32,338+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.339, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:26:32,339+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.339, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:26:32,339+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.339, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:26:32,339+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:26:32,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:26:32,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'PGPSETN1BKKGFTAI0O3K8GA0M7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:26:32 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'PGPSETN1BKKGFTAI0O3K8GA0M7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.603, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,603+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.603, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,603+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.603, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,603+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.603, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,603+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.604, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,604+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.604, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,604+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.604, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,604+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.604, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,604+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.604, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,604+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.605, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,605+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.605, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,605+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.605, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,605+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.605, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,605+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.605, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,605+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.605, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,605+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.606, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,606+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.606, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,606+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,614+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,614+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,614+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,615+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,615+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,615+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,615+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,616+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,616+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:26:32,616+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:26:32,616+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:26:32,616+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:26:32,616+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:26:32,617+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.635, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:26:32,635+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.636, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:26:32,636+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'time': 1737037592.636, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:26:32,636+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bbc4733d-774e-4896-b16c-bafca7b25852', 'correlation_id': '6135abaa-47fa-44ee-9f14-f80e06be30a4.9851843e-443a-4a65-9779-03654e0cfdad.rrt-351802698466971252-b-geu2-72841-1148459-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891716-c542e12bdc24e0fb37e3e8fc'}}, {'raw_message': 'END RequestId: bbc4733d-774e-4896-b16c-bafca7b25852\\n'}, {'raw_message': 'REPORT RequestId: bbc4733d-774e-4896-b16c-bafca7b25852\\tDuration: 816.89 ms\\tBilled Duration: 817 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1503.33 ms\\t\\nXRAY TraceId: 1-67891716-c542e12bdc24e0fb37e3e8fc\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 456b8f00-f417-40b4-933d-24454a3ed5cd Version: $LATEST\\n'}, {'time': 1737037635.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:27:15,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer OxeecAbnvmhwBMdQfYa8FeoBxn2P', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '1b066062-4927-4279-abeb-cb4616d6355e', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '185ef44f-3f47-4452-bdf3-598c59cd8c74', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '1b066062-4927-4279-abeb-cb4616d6355e'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:27:15,192+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:27:15,192+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer OxeecAbnvmhwBMdQfYa8FeoBxn2P', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '1b066062-4927-4279-abeb-cb4616d6355e', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '185ef44f-3f47-4452-bdf3-598c59cd8c74', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '1b066062-4927-4279-abeb-cb4616d6355e'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:27:15,192+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:27:15,193+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:27:15,193+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:27:15,193+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:27:15,193+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:27:15,193+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.193, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:27:15,193+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.194, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:27:15,194+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.194, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:27:15,194+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.194, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:27:15,194+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.194, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:27:15,194+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.195, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:27:15,195+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:27:15,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:27:15,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'H7ARQDC9FRV26KLERJ9S00UQ3BVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:27:15 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'H7ARQDC9FRV26KLERJ9S00UQ3BVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.216, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,216+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.216, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,216+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.216, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,216+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.216, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,216+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.216, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,216+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.217, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,217+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.217, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,217+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.217, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,217+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.217, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,217+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.217, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,217+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.217, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,217+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.218, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,218+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.218, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,218+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.218, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,218+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.218, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,218+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.218, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,218+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.219, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,219+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.22, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,220+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.22, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,220+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.22, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,220+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.22, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:27:15,220+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.22, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:27:15,220+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.22, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:27:15,220+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.221, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:27:15,221+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.221, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:27:15,221+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.235, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:27:15,235+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.235, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:27:15,235+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'time': 1737037635.235, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:27:15,235+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '456b8f00-f417-40b4-933d-24454a3ed5cd', 'correlation_id': '1b066062-4927-4279-abeb-cb4616d6355e.185ef44f-3f47-4452-bdf3-598c59cd8c74.rrt-6224260513910871712-c-geu2-72105-1208360-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891743-a1e52a51fa94e5cdf3b8ca0b'}}, {'raw_message': 'END RequestId: 456b8f00-f417-40b4-933d-24454a3ed5cd\\n'}, {'raw_message': 'REPORT RequestId: 456b8f00-f417-40b4-933d-24454a3ed5cd\\tDuration: 64.15 ms\\tBilled Duration: 65 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891743-a1e52a51fa94e5cdf3b8ca0b\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 83ecfaa5-646f-4840-89c1-50c27a6c1f1d Version: $LATEST\\n'}, {'time': 1737038431.449, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:40:31,449+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer fmua71vSRwOXR9epICoVPIDrJUK9', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '0167d962-d79b-459e-9f5a-01a8c961ed9c', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.45, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:40:31,450+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.45, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:40:31,450+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer fmua71vSRwOXR9epICoVPIDrJUK9', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '0167d962-d79b-459e-9f5a-01a8c961ed9c', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:40:31,451+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:40:31,451+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:40:31,452+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:40:31,452+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:40:31,452+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:40:31,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:40:31,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:40:31,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:40:31,970+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:40:31,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:40:31,971+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038431.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:40:31,972+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.235, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:40:32,235+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:40:32,236+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': '4MU63ILHKOP2HGAFA8HBGDRMVVVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:40:32 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': '4MU63ILHKOP2HGAFA8HBGDRMVVVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,236+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,236+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,236+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,236+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.238, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,238+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.241, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,241+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.241, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,241+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.241, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,241+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.241, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,241+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.242, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,242+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.242, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,242+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.242, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,242+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.242, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,242+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.242, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,242+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.243, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,243+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.247, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,247+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.247, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,247+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.247, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,247+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.247, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,247+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.248, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,248+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.248, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,248+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.248, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,248+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.248, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,248+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.248, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,248+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.249, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,249+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.249, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,249+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.249, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,249+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.249, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,249+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.249, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,249+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.25, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,250+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.25, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:40:32,250+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.25, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:40:32,250+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.25, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:40:32,250+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.25, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:40:32,250+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.25, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:40:32,250+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.269, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:40:32,269+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.269, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:40:32,269+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'time': 1737038432.27, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:40:32,270+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '83ecfaa5-646f-4840-89c1-50c27a6c1f1d', 'correlation_id': '22b27bc2-8e51-42d8-ba4c-fcc268f6b87e.0167d962-d79b-459e-9f5a-01a8c961ed9c.rrt-5266613670261413586-a-geu2-72046-1251410-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891a5d-9111128562c91e5f3a4ec60c'}}, {'raw_message': 'END RequestId: 83ecfaa5-646f-4840-89c1-50c27a6c1f1d\\n'}, {'raw_message': 'REPORT RequestId: 83ecfaa5-646f-4840-89c1-50c27a6c1f1d\\tDuration: 839.32 ms\\tBilled Duration: 840 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1548.41 ms\\t\\nXRAY TraceId: 1-67891a5d-9111128562c91e5f3a4ec60c\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 69a5f73c-7268-4411-9e15-1f0c2f96853f Version: $LATEST\\n'}, {'time': 1737038563.351, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:42:43,351+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer JSWi9WlbpHHEPlMCg2rcZQyQ6yYf', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '7babbdb9-7b42-4980-bdc1-7449c09b2002', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'df9b9b25-5093-4501-8e60-b6b5f675ad1c', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '7babbdb9-7b42-4980-bdc1-7449c09b2002'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.352, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:42:43,352+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.352, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:42:43,352+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer JSWi9WlbpHHEPlMCg2rcZQyQ6yYf', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '7babbdb9-7b42-4980-bdc1-7449c09b2002', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'df9b9b25-5093-4501-8e60-b6b5f675ad1c', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '7babbdb9-7b42-4980-bdc1-7449c09b2002'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.352, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:42:43,352+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.352, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:42:43,352+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.353, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:42:43,353+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.354, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:42:43,354+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.354, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:42:43,354+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.851, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:42:43,851+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.851, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:42:43,851+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.852, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:42:43,852+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.852, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:42:43,852+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.853, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:42:43,853+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.853, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:42:43,853+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038563.853, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:42:43,853+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.114, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:42:44,114+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.114, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:42:44,114+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'NHOEATAO8U3CHRNQ8HEDTK5E3FVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:42:43 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'NHOEATAO8U3CHRNQ8HEDTK5E3FVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.114, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,114+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.114, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,114+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.115, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,115+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.115, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,115+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.116, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,116+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.116, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,116+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.116, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,116+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.117, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,117+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.117, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,117+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.117, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,117+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.117, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,117+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.117, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,117+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.118, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,118+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.118, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,118+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.118, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,118+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.118, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,118+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.126, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,126+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.127, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,127+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.127, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,127+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.127, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,127+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.127, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,127+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.127, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,127+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.128, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,128+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.128, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,128+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.128, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,128+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.128, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,128+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.128, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,128+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.128, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,128+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.129, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,129+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.129, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,129+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.129, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:42:44,129+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.129, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:42:44,129+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.129, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:42:44,129+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.129, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:42:44,129+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.13, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:42:44,130+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.132, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:42:44,132+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.132, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:42:44,132+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'time': 1737038564.133, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:42:44,133+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '69a5f73c-7268-4411-9e15-1f0c2f96853f', 'correlation_id': '7babbdb9-7b42-4980-bdc1-7449c09b2002.df9b9b25-5093-4501-8e60-b6b5f675ad1c.rrt-1671723608263202277-b-geu2-74375-8722483-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891ae1-d5b571ee504e836af78ea7b2'}}, {'raw_message': 'END RequestId: 69a5f73c-7268-4411-9e15-1f0c2f96853f\\n'}, {'raw_message': 'REPORT RequestId: 69a5f73c-7268-4411-9e15-1f0c2f96853f\\tDuration: 798.41 ms\\tBilled Duration: 799 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1522.03 ms\\t\\nXRAY TraceId: 1-67891ae1-d5b571ee504e836af78ea7b2\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: a1f46560-013d-4f86-a5e1-0a62033db83b Version: $LATEST\\n'}, {'time': 1737038588.195, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:43:08,195+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer oyiGbuJWTS9lOTdU0RzQYkfe7XWO', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'dcb88cee-afec-4293-92b9-5ff4c51f569c', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.196, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:43:08,196+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.196, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:43:08,196+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer oyiGbuJWTS9lOTdU0RzQYkfe7XWO', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'dcb88cee-afec-4293-92b9-5ff4c51f569c', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.196, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:43:08,196+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.196, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:43:08,196+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.196, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:43:08,196+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.197, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:43:08,197+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.197, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:43:08,197+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.197, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:43:08,197+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.197, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:43:08,197+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.197, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:43:08,197+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.197, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:43:08,197+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.198, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:43:08,198+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.198, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:43:08,198+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.198, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:43:08,198+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.208, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:43:08,208+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.208, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:43:08,208+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'VFHT8LH8UBIGTS9GEEUPL7DDHBVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:43:08 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'VFHT8LH8UBIGTS9GEEUPL7DDHBVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.209, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,209+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.209, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,209+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.209, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,209+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.209, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,209+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.21, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,210+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.21, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,210+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.21, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,210+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.21, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,210+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.21, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,210+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.226, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:08,226+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:08,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:08,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:08,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.227, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:08,227+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.229, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:43:08,229+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.229, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:43:08,229+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'time': 1737038588.229, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:43:08,229+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a1f46560-013d-4f86-a5e1-0a62033db83b', 'correlation_id': 'a459e7ba-f0ba-4433-acd3-60132a1e28eb.dcb88cee-afec-4293-92b9-5ff4c51f569c.rrt-8245663644601394002-c-geu2-2565819-21250537-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891afc-e049a1142930fcc764a32e4d'}}, {'raw_message': 'END RequestId: a1f46560-013d-4f86-a5e1-0a62033db83b\\n'}, {'raw_message': 'REPORT RequestId: a1f46560-013d-4f86-a5e1-0a62033db83b\\tDuration: 54.54 ms\\tBilled Duration: 55 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891afc-e049a1142930fcc764a32e4d\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 853caede-cf43-4cc8-a098-7eabd70da3ca Version: $LATEST\\n'}, {'time': 1737038591.475, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:43:11,475+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer BAAWxAvKLEQcwo8ZRmGq2hZv1v6i', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '678657b1-e478-4859-874c-bc5f224e6de0', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'ec1276de-6cb1-42e1-964c-be04f05be1ae', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '678657b1-e478-4859-874c-bc5f224e6de0'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.476, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:43:11,476+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.476, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:43:11,476+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer BAAWxAvKLEQcwo8ZRmGq2hZv1v6i', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '678657b1-e478-4859-874c-bc5f224e6de0', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'ec1276de-6cb1-42e1-964c-be04f05be1ae', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '678657b1-e478-4859-874c-bc5f224e6de0'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.476, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:43:11,476+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.476, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:43:11,476+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.476, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:43:11,476+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.477, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:43:11,477+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.477, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:43:11,477+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.477, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:43:11,477+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.477, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:43:11,477+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.477, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:43:11,477+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.477, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:43:11,477+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.478, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:43:11,478+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.478, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:43:11,478+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.478, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:43:11,478+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.485, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:43:11,485+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.485, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:43:11,485+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'I2BGT7NQAC63AAV4ICAHES32J7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:43:11 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'I2BGT7NQAC63AAV4ICAHES32J7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.486, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,486+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.486, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,486+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.486, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,486+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.486, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,486+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.486, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,486+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.49, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,490+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.49, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,490+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.49, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,490+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.506, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,506+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.507, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,507+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.507, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,507+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.507, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,507+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.508, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:11,508+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.508, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:11,508+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.508, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:11,508+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.508, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:11,508+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.508, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:11,508+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.51, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:43:11,510+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.51, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:43:11,510+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'time': 1737038591.511, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:43:11,511+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '853caede-cf43-4cc8-a098-7eabd70da3ca', 'correlation_id': '678657b1-e478-4859-874c-bc5f224e6de0.ec1276de-6cb1-42e1-964c-be04f05be1ae.rrt-7714091047207434907-a-geu2-1763299-21004028-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891aff-7d200b2e52062b8a61b4d507'}}, {'raw_message': 'END RequestId: 853caede-cf43-4cc8-a098-7eabd70da3ca\\n'}, {'raw_message': 'REPORT RequestId: 853caede-cf43-4cc8-a098-7eabd70da3ca\\tDuration: 52.73 ms\\tBilled Duration: 53 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891aff-7d200b2e52062b8a61b4d507\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6 Version: $LATEST\\n'}, {'time': 1737038602.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:43:22,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer QnDomDuA7KE1EAbJTRrH1Pa1fKqE', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '34098d57-9727-42b1-9469-91e61ae12704', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.947, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:43:22,947+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.947, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:43:22,947+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer QnDomDuA7KE1EAbJTRrH1Pa1fKqE', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '34098d57-9727-42b1-9469-91e61ae12704', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.947, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:43:22,947+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:43:22,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:43:22,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:43:22,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:43:22,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:43:22,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:43:22,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:43:22,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:43:22,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:43:22,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:43:22,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:43:22,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.956, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:43:22,956+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.956, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:43:22,956+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': '1AOF1E421HFVFT6N3B655HB87VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:43:22 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': '1AOF1E421HFVFT6N3B655HB87VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.957, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,957+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.957, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,957+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.957, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,957+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.957, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,957+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.967, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,967+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.968, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,968+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.969, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,969+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.986, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,986+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.987, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:43:22,987+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.987, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:43:22,987+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.987, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:43:22,987+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.987, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:43:22,987+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.988, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:43:22,988+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.989, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:43:22,989+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.989, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:43:22,989+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'time': 1737038602.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:43:22,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6', 'correlation_id': 'e3ad4e96-8602-42e3-bdb3-45c60de7d107.34098d57-9727-42b1-9469-91e61ae12704.rrt-4291318045794731592-c-geu2-1159942-20553537-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891b0a-4985a2e73b1d8c4b557b1727'}}, {'raw_message': 'END RequestId: 6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6\\n'}, {'raw_message': 'REPORT RequestId: 6ebf9e89-f33d-4e1f-abb9-e9ea15ba76c6\\tDuration: 61.33 ms\\tBilled Duration: 62 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'START RequestId: 71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5 Version: $LATEST\\n'}, {'time': 1737038810.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:46:50,759+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer PqMx38ZDCDeTJTDtdvMyrApckgAi', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '4a3814c2-1b89-4b1a-a50c-e806e8cd22ef', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:46:50,760+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:46:50,761+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer PqMx38ZDCDeTJTDtdvMyrApckgAi', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '4a3814c2-1b89-4b1a-a50c-e806e8cd22ef', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:46:50,761+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:46:50,761+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:46:50,761+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:46:50,761+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:46:50,762+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:46:50,762+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:46:50,762+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:46:50,762+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:46:50,762+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:46:50,763+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:46:50,763+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:46:50,763+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.931, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:46:50,931+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.931, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:46:50,931+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'V0T8SNJAF9I5D4O32SEGCS7NDRVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:46:50 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'V0T8SNJAF9I5D4O32SEGCS7NDRVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.932, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,932+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.932, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,932+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.932, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,932+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.932, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,932+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.933, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,933+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.933, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,933+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.933, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,933+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.933, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,933+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.933, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,933+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.934, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,934+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.934, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,934+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.934, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,934+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.934, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,934+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.934, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,934+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.935, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,935+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.935, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,935+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.935, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,935+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.935, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,935+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.935, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,935+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.935, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,935+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.936, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,936+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.936, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,936+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.936, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,936+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.936, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,936+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.936, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,936+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.945, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,945+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.945, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,945+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.945, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,945+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.945, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,945+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.945, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,945+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:50,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:50,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:50,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:50,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:50,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:46:50,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:46:50,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'time': 1737038810.965, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:46:50,965+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5', 'correlation_id': '0f8a7f15-2b59-4bc5-a292-7740760bdaa5.4a3814c2-1b89-4b1a-a50c-e806e8cd22ef.rrt-4443860213097515606-b-geu2-72160-3952132-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891bda-efe7be68a28803107609e346'}}, {'raw_message': 'END RequestId: 71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5\\n'}, {'raw_message': 'REPORT RequestId: 71f5c8ca-fa87-4a92-9ecc-1c11b4d81fd5\\tDuration: 210.64 ms\\tBilled Duration: 211 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891bda-efe7be68a28803107609e346\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 2c3cd462-bb27-410f-955e-355efb981b3c Version: $LATEST\\n'}, {'time': 1737038819.979, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:46:59,979+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer Y9GCv46EZ2XEa6efKPYkGOvgM1l5', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '93236c48-3c5a-4046-b560-2fb8096049d7', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.98, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:46:59,980+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.98, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:46:59,980+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer Y9GCv46EZ2XEa6efKPYkGOvgM1l5', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '93236c48-3c5a-4046-b560-2fb8096049d7', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.98, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:46:59,980+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:46:59,981+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:46:59,981+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:46:59,981+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:46:59,981+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:46:59,981+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.981, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:46:59,981+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:46:59,982+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:46:59,982+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:46:59,982+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:46:59,982+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:46:59,982+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.989, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:46:59,989+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:46:59,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': '3E68CFS008JTCTDV5L2GVCV977VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:46:59 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': '3E68CFS008JTCTDV5L2GVCV977VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.994, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,994+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.994, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,994+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.994, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,994+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.994, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,994+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.994, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,994+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.994, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,994+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.995, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,995+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.995, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,995+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.995, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,995+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.995, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,995+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.995, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:46:59,995+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.995, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:46:59,995+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.996, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:46:59,996+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.996, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:46:59,996+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038819.996, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:46:59,996+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038820.006, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:47:00,006+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038820.006, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:47:00,006+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'time': 1737038820.006, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:47:00,006+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '2c3cd462-bb27-410f-955e-355efb981b3c', 'correlation_id': 'd7a96ad1-2d33-4b96-9580-a5d1d8761608.93236c48-3c5a-4046-b560-2fb8096049d7.rrt-3057173199177491261-a-geu2-2406962-20848575-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891be3-ca11812019244b7cc05a3e25'}}, {'raw_message': 'END RequestId: 2c3cd462-bb27-410f-955e-355efb981b3c\\n'}, {'raw_message': 'REPORT RequestId: 2c3cd462-bb27-410f-955e-355efb981b3c\\tDuration: 46.85 ms\\tBilled Duration: 47 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891be3-ca11812019244b7cc05a3e25\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 214de899-f452-43d1-90ae-c850f3da842b Version: $LATEST\\n'}, {'time': 1737038827.794, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:47:07,794+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer JHzD98b47rc4XGP4vUIl6KrNpo5s', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2ccd3ed4-a139-4557-9296-48ead4f33e3a', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'f0a5791d-cb92-4e74-b7b9-74bc3e402b92', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:47:07,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:47:07,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer JHzD98b47rc4XGP4vUIl6KrNpo5s', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2ccd3ed4-a139-4557-9296-48ead4f33e3a', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'f0a5791d-cb92-4e74-b7b9-74bc3e402b92', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:47:07,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:47:07,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.796, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:47:07,796+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.796, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:47:07,796+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.796, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:47:07,796+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.796, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:47:07,796+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.796, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:47:07,796+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.797, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:47:07,797+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.797, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:47:07,797+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.797, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:47:07,797+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.797, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:47:07,797+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.797, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:47:07,797+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:47:07,805+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:47:07,805+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': '7247O0GJ8NDA0V0J1N52BP8F63VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:47:07 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': '7247O0GJ8NDA0V0J1N52BP8F63VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,805+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,805+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,805+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,805+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,806+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,806+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,806+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,806+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,806+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,807+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,807+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,807+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,807+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,807+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,827+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:47:07,827+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:47:07,827+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:47:07,827+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:47:07,827+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.828, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:47:07,828+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.829, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:47:07,829+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.829, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:47:07,829+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'time': 1737038827.83, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:47:07,830+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '214de899-f452-43d1-90ae-c850f3da842b', 'correlation_id': '2ccd3ed4-a139-4557-9296-48ead4f33e3a.f0a5791d-cb92-4e74-b7b9-74bc3e402b92.rrt-5192643415628698414-a-geu2-4176844-20916576-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891beb-37f61dbd5055e1bac5052242'}}, {'raw_message': 'END RequestId: 214de899-f452-43d1-90ae-c850f3da842b\\n'}, {'raw_message': 'REPORT RequestId: 214de899-f452-43d1-90ae-c850f3da842b\\tDuration: 51.81 ms\\tBilled Duration: 52 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67891beb-37f61dbd5055e1bac5052242\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: e97a6832-2c80-4ddd-a2fa-61c988f357a2 Version: $LATEST\\n'}, {'time': 1737039332.758, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:55:32,758+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer GxTDlOsKStCx8ULgMFDvRbP3n0mI', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '5295aaaf-986d-49a1-9b0a-4fe24d245f8d', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:55:32,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:55:32,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer GxTDlOsKStCx8ULgMFDvRbP3n0mI', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '5295aaaf-986d-49a1-9b0a-4fe24d245f8d', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:55:32,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:55:32,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:55:32,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:55:32,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039332.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:55:32,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.258, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:55:33,258+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.259, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:55:33,259+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.259, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:55:33,259+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.259, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:55:33,259+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.26, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:55:33,260+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.26, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:55:33,260+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.26, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:55:33,260+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.538, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:55:33,538+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.538, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:55:33,538+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'AESM7S0EQOCM0D4SSHV9D7UA3VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:55:33 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'AESM7S0EQOCM0D4SSHV9D7UA3VVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.539, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,539+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.539, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,539+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.539, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,539+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.539, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,539+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.543, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,543+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.543, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,543+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.543, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,543+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.543, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,543+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.543, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,543+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.543, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,543+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.544, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,544+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.544, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,544+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.544, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,544+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.544, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,544+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.544, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,544+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.545, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,545+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.545, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,545+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.553, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,553+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.553, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,553+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.554, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,554+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.554, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:33,554+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.554, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:33,554+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.554, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:33,554+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.554, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:33,554+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.555, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:33,555+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.573, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:55:33,573+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.574, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:55:33,574+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'time': 1737039333.574, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:55:33,574+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e97a6832-2c80-4ddd-a2fa-61c988f357a2', 'correlation_id': '26ce4ea3-9d15-4e39-9e0d-e50a1c57def6.5295aaaf-986d-49a1-9b0a-4fe24d245f8d.rrt-8528403527824170125-c-geu2-72264-1312327-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891de2-f110d2475dec9d4d7a5ae604'}}, {'raw_message': 'END RequestId: e97a6832-2c80-4ddd-a2fa-61c988f357a2\\n'}, {'raw_message': 'REPORT RequestId: e97a6832-2c80-4ddd-a2fa-61c988f357a2\\tDuration: 836.27 ms\\tBilled Duration: 837 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1527.17 ms\\t\\nXRAY TraceId: 1-67891de2-f110d2475dec9d4d7a5ae604\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 209c16e0-8c3c-4724-8610-07739bb69ebc Version: $LATEST\\n'}, {'time': 1737039340.946, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 14:55:40,946+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer gouYMDqPkdwx6FABI935KB1wUfYA', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '85b56597-652f-4b7b-a36f-418c33d6e65b', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '047a54ce-8871-4119-bb04-1629fd2e065a', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '85b56597-652f-4b7b-a36f-418c33d6e65b'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.947, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 14:55:40,947+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.947, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 14:55:40,947+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer gouYMDqPkdwx6FABI935KB1wUfYA', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '85b56597-652f-4b7b-a36f-418c33d6e65b', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '047a54ce-8871-4119-bb04-1629fd2e065a', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '85b56597-652f-4b7b-a36f-418c33d6e65b'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.947, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 14:55:40,947+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 14:55:40,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 14:55:40,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 14:55:40,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 14:55:40,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 14:55:40,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.948, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 14:55:40,948+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 14:55:40,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:55:40,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 14:55:40,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.949, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 14:55:40,949+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.95, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 14:55:40,950+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.957, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 14:55:40,957+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'stats': {'count': 7, 'scanned_count': 7, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.957, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 14:55:40,957+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}], 'Count': 7, 'ScannedCount': 7, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 2.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 2.5}}}, 'ResponseMetadata': {'RequestId': 'B5A1IFN32I2SINGMKSDE6NONTJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 14:55:40 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '22985', 'connection': 'keep-alive', 'x-amzn-requestid': 'B5A1IFN32I2SINGMKSDE6NONTJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '543750220'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.958, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,958+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.959, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,959+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.959, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,959+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.959, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,959+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.959, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,959+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.959, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,959+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.96, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,960+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.96, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,960+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.96, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,960+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.96, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,960+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.96, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,960+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.96, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,960+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.961, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,961+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.961, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,961+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.961, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,961+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.961, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,961+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.961, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,961+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.962, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,962+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.963, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,963+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.963, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,963+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.963, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,963+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.963, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 14:55:40,963+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.963, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 14:55:40,963+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.963, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 14:55:40,963+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.964, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 14:55:40,964+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.964, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 14:55:40,964+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.974, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 14:55:40,974+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.974, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 14:55:40,974+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 7,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'time': 1737039340.974, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 14:55:40,974+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '209c16e0-8c3c-4724-8610-07739bb69ebc', 'correlation_id': '85b56597-652f-4b7b-a36f-418c33d6e65b.047a54ce-8871-4119-bb04-1629fd2e065a.rrt-3988340787763075059-c-geu2-3545629-20417375-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67891dec-c8df384362d73739bbbde15a'}}, {'raw_message': 'END RequestId: 209c16e0-8c3c-4724-8610-07739bb69ebc\\n'}, {'raw_message': 'REPORT RequestId: 209c16e0-8c3c-4724-8610-07739bb69ebc\\tDuration: 49.43 ms\\tBilled Duration: 50 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: a0bc2eaa-98fd-4de4-86c6-4e19784a84ae Version: $LATEST\\n'}, {'time': 1737043722.824, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:08:42,824+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer ZdT2pzkF62ORRG5HFMlvsfrXgvvm', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'f39dabc9-7150-4a74-9790-27fb54cb5d97', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:08:42,825+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:08:42,825+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer ZdT2pzkF62ORRG5HFMlvsfrXgvvm', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'f39dabc9-7150-4a74-9790-27fb54cb5d97', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:08:42,825+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:08:42,825+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:08:42,826+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:08:42,827+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043722.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:08:42,827+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:08:43,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:08:43,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:08:43,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:08:43,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.323, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:08:43,323+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.323, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:08:43,323+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.323, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:08:43,323+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:08:43,589+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:08:43,589+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'J2SQC28THOQVVK5TFCPA0QG50JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:08:43 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'J2SQC28THOQVVK5TFCPA0QG50JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,589+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,589+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.59, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,590+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.59, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,590+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.591, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,591+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.591, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,591+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:08:43,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:08:43,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:08:43,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:08:43,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:08:43,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:08:43,617+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.618, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:08:43,618+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'time': 1737043723.618, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:08:43,618+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a0bc2eaa-98fd-4de4-86c6-4e19784a84ae', 'correlation_id': 'a3a353b8-8f8c-42fa-b498-5ac85366cac6.f39dabc9-7150-4a74-9790-27fb54cb5d97.rrt-5566352321088402020-b-geu2-72036-1154941-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67892f08-9a7e3052df38ffb33f29b58c'}}, {'raw_message': 'END RequestId: a0bc2eaa-98fd-4de4-86c6-4e19784a84ae\\n'}, {'raw_message': 'REPORT RequestId: a0bc2eaa-98fd-4de4-86c6-4e19784a84ae\\tDuration: 815.28 ms\\tBilled Duration: 816 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1634.68 ms\\t\\nXRAY TraceId: 1-67892f08-9a7e3052df38ffb33f29b58c\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: de59d188-a421-4aca-a8f2-11ee2fdddc5a Version: $LATEST\\n'}, {'time': 1737043935.824, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:12:15,824+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer AjVj1Q5aBRvwARP9A6NtCTtGhbIr', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '53a1ab39-d268-48d7-a49b-6dfce4585891', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.824, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:12:15,824+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.824, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:12:15,824+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer AjVj1Q5aBRvwARP9A6NtCTtGhbIr', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '53a1ab39-d268-48d7-a49b-6dfce4585891', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:12:15,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:12:15,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:12:15,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:12:15,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:12:15,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.825, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:12:15,825+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:12:15,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:12:15,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:12:15,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:12:15,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:12:15,826+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:12:15,827+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.989, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:12:15,989+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.989, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:12:15,989+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': '0GE19NA91MKMEIH3GUNO328587VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:12:15 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': '0GE19NA91MKMEIH3GUNO328587VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:15,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:15,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:15,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.99, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:15,990+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:15,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:15,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:15,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:15,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.991, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:15,991+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:15,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:15,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:15,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:15,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.992, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:15,992+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:15,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:15,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.993, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:15,993+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.997, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:15,997+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.997, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:15,997+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.998, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:15,998+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.998, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:15,998+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.998, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:15,998+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.998, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:15,998+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.998, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:15,998+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.999, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:15,999+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.999, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:15,999+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.999, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:15,999+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.999, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:15,999+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043935.999, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:15,999+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.0, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:16,000+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.0, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:16,000+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.0, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:16,000+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.0, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:16,000+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.0, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:16,000+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.0, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:16,000+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.001, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:12:16,001+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.001, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:12:16,001+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.001, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:12:16,001+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.001, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:12:16,001+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.001, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:12:16,001+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.003, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:12:16,003+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.003, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:12:16,003+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'time': 1737043936.004, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:12:16,004+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'de59d188-a421-4aca-a8f2-11ee2fdddc5a', 'correlation_id': '2835ca3c-76c6-4b0f-96d1-3c93809ebcc5.53a1ab39-d268-48d7-a49b-6dfce4585891.rrt-4291318045794731592-c-geu2-1159942-20692299-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67892fdf-6987b1a9ac5880d3ad65b995'}}, {'raw_message': 'END RequestId: de59d188-a421-4aca-a8f2-11ee2fdddc5a\\n'}, {'raw_message': 'REPORT RequestId: de59d188-a421-4aca-a8f2-11ee2fdddc5a\\tDuration: 196.69 ms\\tBilled Duration: 197 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67892fdf-6987b1a9ac5880d3ad65b995\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: d1bc3dfc-108d-45ab-a997-957e17ccd9ca Version: $LATEST\\n'}, {'time': 1737044638.274, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:23:58,274+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer n6lxIEHlTOB6wjd7GjBTwoGVYYPz', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '4677e408-3c92-4e65-83ca-a37813f8aeec', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '9177df04-5e3c-4337-97f1-165f0b740d07', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '4677e408-3c92-4e65-83ca-a37813f8aeec'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.275, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:23:58,275+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.275, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:23:58,275+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer n6lxIEHlTOB6wjd7GjBTwoGVYYPz', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '4677e408-3c92-4e65-83ca-a37813f8aeec', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '9177df04-5e3c-4337-97f1-165f0b740d07', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '4677e408-3c92-4e65-83ca-a37813f8aeec'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.275, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:23:58,275+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.276, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:23:58,276+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.277, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:23:58,277+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.277, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:23:58,277+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.277, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:23:58,277+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.772, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:23:58,772+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.772, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:23:58,772+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.772, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:23:58,772+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.773, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:23:58,773+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.773, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:23:58,773+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.774, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:23:58,774+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044638.774, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:23:58,774+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.038, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:23:59,038+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.039, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:23:59,039+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'LMR6DCS6IEK77S6QRJ2SU8UA0BVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:23:59 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'LMR6DCS6IEK77S6QRJ2SU8UA0BVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.039, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,039+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.039, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,039+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.039, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,039+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.039, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,039+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.049, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,049+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.049, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,049+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.05, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,050+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.05, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,050+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.05, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,050+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.05, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,050+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.051, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,051+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.051, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,051+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.051, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,051+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.051, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,051+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.051, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,051+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.051, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,051+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.052, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,052+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.052, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,052+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.052, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,052+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.052, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,052+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.052, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,052+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.052, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,052+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.053, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,053+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.053, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,053+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.053, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,053+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.053, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,053+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.053, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,053+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.053, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,053+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.054, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,054+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.054, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,054+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.054, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,054+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.054, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,054+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.054, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,054+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.055, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,055+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.055, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,055+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.055, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:23:59,055+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.055, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:23:59,055+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.055, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:23:59,055+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.055, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:23:59,055+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.056, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:23:59,056+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.071, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:23:59,071+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.071, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:23:59,071+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'time': 1737044639.072, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:23:59,072+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'd1bc3dfc-108d-45ab-a997-957e17ccd9ca', 'correlation_id': '4677e408-3c92-4e65-83ca-a37813f8aeec.9177df04-5e3c-4337-97f1-165f0b740d07.rrt-8245663644601394002-c-geu2-2565819-21416417-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6789329c-506cf8903afd42a88d742001'}}, {'raw_message': 'END RequestId: d1bc3dfc-108d-45ab-a997-957e17ccd9ca\\n'}, {'raw_message': 'REPORT RequestId: d1bc3dfc-108d-45ab-a997-957e17ccd9ca\\tDuration: 818.24 ms\\tBilled Duration: 819 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1490.99 ms\\t\\nXRAY TraceId: 1-6789329c-506cf8903afd42a88d742001\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: e9f188a8-4442-4468-9151-0271714c4d4f Version: $LATEST\\n'}, {'time': 1737044644.585, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:24:04,585+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer WMyIsXSfv0AJNGjXS5ud2ThFiSen', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'a2ab581c-d162-4259-b099-fd82d4b718d0', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '1888ea86-8842-45b3-a92e-a269ece78b90', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a2ab581c-d162-4259-b099-fd82d4b718d0'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.586, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:24:04,586+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.586, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:24:04,586+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer WMyIsXSfv0AJNGjXS5ud2ThFiSen', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'a2ab581c-d162-4259-b099-fd82d4b718d0', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '1888ea86-8842-45b3-a92e-a269ece78b90', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a2ab581c-d162-4259-b099-fd82d4b718d0'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.586, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:24:04,586+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.586, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:24:04,586+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.587, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:24:04,587+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.588, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:24:04,588+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.588, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:24:04,588+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.588, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:24:04,588+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:24:04,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:24:04,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'VUL7I4SS5U27IFT5SCFR3G0NQJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:24:04 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'VUL7I4SS5U27IFT5SCFR3G0NQJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,613+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,613+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,613+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,613+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,613+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,614+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,614+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,614+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,614+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,614+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.614, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,614+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,615+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,615+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,615+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,615+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.615, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,615+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.616, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:24:04,616+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:24:04,617+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:24:04,617+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:24:04,617+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.629, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:24:04,629+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.631, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:24:04,631+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.631, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:24:04,631+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'time': 1737044644.632, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:24:04,632+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e9f188a8-4442-4468-9151-0271714c4d4f', 'correlation_id': 'a2ab581c-d162-4259-b099-fd82d4b718d0.1888ea86-8842-45b3-a92e-a269ece78b90.rrt-3057173199177491261-a-geu2-2406963-21003134-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678932a4-6c5805af0acfc77be4b2483b'}}, {'raw_message': 'END RequestId: e9f188a8-4442-4468-9151-0271714c4d4f\\n'}, {'raw_message': 'REPORT RequestId: e9f188a8-4442-4468-9151-0271714c4d4f\\tDuration: 67.19 ms\\tBilled Duration: 68 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'START RequestId: f7159104-bde6-41b6-95a0-5f70d97399bf Version: $LATEST\\n'}, {'time': 1737044807.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:26:47,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer GpDv9tjYTY2QdwESY3KGukhpmDEY', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2dd951b1-7b89-47bf-a960-dda3fd718e4e', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '48b38f29-9fa9-46e0-870a-e27940bb2ea6', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:26:47,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.97, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:26:47,970+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer GpDv9tjYTY2QdwESY3KGukhpmDEY', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '2dd951b1-7b89-47bf-a960-dda3fd718e4e', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '48b38f29-9fa9-46e0-870a-e27940bb2ea6', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:26:47,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:26:47,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:26:47,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:26:47,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:26:47,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.971, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:26:47,971+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:26:47,972+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:26:47,972+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:26:47,972+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:26:47,972+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.972, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:26:47,972+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044807.973, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:26:47,973+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.142, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:26:48,142+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.142, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:26:48,142+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'HD7RCTMSUIS1FHSUJK1EHB8ILVVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:26:48 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'HD7RCTMSUIS1FHSUJK1EHB8ILVVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.143, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,143+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.143, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,143+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.143, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,143+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.143, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,143+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,144+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,144+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,144+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,144+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.144, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,144+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.145, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,145+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.145, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,145+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.145, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,145+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.145, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,145+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.145, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,145+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.146, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,146+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.146, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,146+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,150+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,150+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,150+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,151+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,151+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,151+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,151+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,151+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.152, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,152+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.152, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,152+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.152, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,152+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.152, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,152+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.152, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,152+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.152, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,152+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.153, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,153+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.153, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,153+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.153, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,153+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.153, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,153+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.153, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,153+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.153, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:48,153+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:48,154+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:48,154+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:48,154+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.154, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:48,154+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.156, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:26:48,156+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.156, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:26:48,156+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'time': 1737044808.157, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:26:48,157+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7159104-bde6-41b6-95a0-5f70d97399bf', 'correlation_id': '2dd951b1-7b89-47bf-a960-dda3fd718e4e.48b38f29-9fa9-46e0-870a-e27940bb2ea6.rrt-8528403527824170125-c-geu2-72265-1462230-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67893347-270fff66aeace769c61402d7'}}, {'raw_message': 'END RequestId: f7159104-bde6-41b6-95a0-5f70d97399bf\\n'}, {'raw_message': 'REPORT RequestId: f7159104-bde6-41b6-95a0-5f70d97399bf\\tDuration: 203.59 ms\\tBilled Duration: 204 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\t\\nXRAY TraceId: 1-67893347-270fff66aeace769c61402d7\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 32679b65-533c-470d-b105-71cd585e17b5 Version: $LATEST\\n'}, {'time': 1737044815.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:26:55,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 3sD0bsalWSJtVoObxlALHX6As5og', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '78578fb7-78f2-4d29-9e01-b0e8b7db67db', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:26:55,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.487, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:26:55,487+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 3sD0bsalWSJtVoObxlALHX6As5og', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '78578fb7-78f2-4d29-9e01-b0e8b7db67db', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:26:55,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:26:55,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:26:55,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:26:55,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:26:55,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.488, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:26:55,488+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:26:55,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:26:55,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:26:55,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:26:55,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.489, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:26:55,489+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.49, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:26:55,490+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.498, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:26:55,498+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:26:55,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': '0FDOONKP9CTNP7342MFD85GPL3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:26:55 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': '0FDOONKP9CTNP7342MFD85GPL3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.5, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,500+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.5, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,500+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.5, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,500+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.5, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,500+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.5, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,500+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.501, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,501+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.501, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,501+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.501, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,501+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.501, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,501+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.501, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,501+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.502, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,502+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.502, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,502+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.51, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,510+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.51, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,510+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.511, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,511+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.511, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,511+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.511, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,511+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.511, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,511+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.512, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,512+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.512, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,512+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.512, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,512+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.512, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,512+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.512, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,512+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.512, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,512+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.513, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,513+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.513, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,513+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.513, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,513+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.513, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,513+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.513, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,513+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.513, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,513+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.514, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,514+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.514, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:26:55,514+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.514, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:26:55,514+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.514, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:26:55,514+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.514, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:26:55,514+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.515, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:26:55,515+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.516, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:26:55,516+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.516, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:26:55,516+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'time': 1737044815.517, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:26:55,517+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '32679b65-533c-470d-b105-71cd585e17b5', 'correlation_id': '78578fb7-78f2-4d29-9e01-b0e8b7db67db.2c92a75f-b943-4dcc-8d0e-5fbd6dc00db7.rrt-8245663644601394002-c-geu2-2565819-21421467-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-6789334f-40b0d9dff8b51506acd5c9a1'}}, {'raw_message': 'END RequestId: 32679b65-533c-470d-b105-71cd585e17b5\\n'}, {'raw_message': 'REPORT RequestId: 32679b65-533c-470d-b105-71cd585e17b5\\tDuration: 47.61 ms\\tBilled Duration: 48 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\t\\nXRAY TraceId: 1-6789334f-40b0d9dff8b51506acd5c9a1\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: bfe574c7-533d-4a37-85e4-8097dd05c135 Version: $LATEST\\n'}, {'time': 1737044960.272, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:29:20,272+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer pAMJt3Ntz6YDBdqQNIWNJPAdQapD', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'e2eefcdd-bbef-4517-bcf8-105834bead64', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.272, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:29:20,272+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.272, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:29:20,272+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer pAMJt3Ntz6YDBdqQNIWNJPAdQapD', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'e2eefcdd-bbef-4517-bcf8-105834bead64', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.273, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:29:20,273+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.273, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:29:20,273+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.273, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:29:20,273+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.273, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:29:20,273+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.273, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:29:20,273+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.274, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:29:20,274+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.274, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:29:20,274+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.274, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:29:20,274+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.274, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:29:20,274+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.274, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:29:20,274+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.275, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:29:20,275+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.275, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:29:20,275+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.433, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:29:20,433+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.434, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:29:20,434+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'TTKT8FHP14IO1Q59OT8R11T2K3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:29:20 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'TTKT8FHP14IO1Q59OT8R11T2K3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.434, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,434+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.434, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,434+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.434, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,434+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.434, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,434+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.435, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,435+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.435, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,435+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.435, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,435+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.435, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,435+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.436, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,436+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.437, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,437+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.438, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,438+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,451+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,451+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.451, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,451+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.452, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,452+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:29:20,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:29:20,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:29:20,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.453, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:29:20,453+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.454, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:29:20,454+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:29:20,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.455, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:29:20,455+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'time': 1737044960.456, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:29:20,456+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'bfe574c7-533d-4a37-85e4-8097dd05c135', 'correlation_id': '1088f8cb-5424-4bb6-81b8-082d26bdd9ef.e2eefcdd-bbef-4517-bcf8-105834bead64.rrt-8245663644601394002-c-geu2-2565820-21425537-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678933e0-c081487412234b628a10b716'}}, {'raw_message': 'END RequestId: bfe574c7-533d-4a37-85e4-8097dd05c135\\n'}, {'raw_message': 'REPORT RequestId: bfe574c7-533d-4a37-85e4-8097dd05c135\\tDuration: 201.34 ms\\tBilled Duration: 202 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 435fe613-ead5-417b-9cf5-9b17e841e58b Version: $LATEST\\n'}, {'time': 1737046024.122, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:47:04,122+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer Coxqmg5MOd3EI1lB7n0Ljno9iyAC', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'c0e0ce91-3036-4de7-bb6a-93838684acac', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'c0e0ce91-3036-4de7-bb6a-93838684acac'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.123, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:47:04,123+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.123, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:47:04,123+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer Coxqmg5MOd3EI1lB7n0Ljno9iyAC', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'c0e0ce91-3036-4de7-bb6a-93838684acac', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'c0e0ce91-3036-4de7-bb6a-93838684acac'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.123, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:47:04,123+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.124, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:47:04,124+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.124, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:47:04,124+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.125, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:47:04,125+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.125, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:47:04,125+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:47:04,611+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:47:04,612+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:47:04,612+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:47:04,612+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:47:04,612+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:47:04,613+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:47:04,613+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.855, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:47:04,855+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.855, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:47:04,855+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'H7O4JNIOOJVMSRJ7CGQUGRI8QBVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:47:04 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'H7O4JNIOOJVMSRJ7CGQUGRI8QBVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.856, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,856+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.856, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,856+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.856, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,856+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.856, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,856+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.857, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,857+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.858, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,858+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.858, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,858+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.858, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,858+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.858, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,858+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.858, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,858+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.858, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,858+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.859, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,859+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.859, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,859+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.859, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,859+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.871, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,871+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.872, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,872+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.872, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,872+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.872, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,872+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.872, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,872+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.873, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,873+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.874, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,874+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.875, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,875+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.875, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,875+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.891, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:04,891+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.891, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:04,891+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.892, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:04,892+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.892, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:04,892+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.892, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:04,892+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.894, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:47:04,894+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.895, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:47:04,895+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'time': 1737046024.895, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:47:04,895+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '435fe613-ead5-417b-9cf5-9b17e841e58b', 'correlation_id': 'c0e0ce91-3036-4de7-bb6a-93838684acac.465b77c4-7b2e-47e2-8b48-a1cfd62d0b8f.rrt-1030161459684962333-a-geu2-780424-21179544-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67893806-0a23c35622f776f773f09be0'}}, {'raw_message': 'END RequestId: 435fe613-ead5-417b-9cf5-9b17e841e58b\\n'}, {'raw_message': 'REPORT RequestId: 435fe613-ead5-417b-9cf5-9b17e841e58b\\tDuration: 790.17 ms\\tBilled Duration: 791 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1358.83 ms\\t\\nXRAY TraceId: 1-67893806-0a23c35622f776f773f09be0\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 126ac749-9ca0-49a3-ac9e-fc0b678e00ee Version: $LATEST\\n'}, {'time': 1737046072.189, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:47:52,189+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer q8JAF2kuPxCZQbx2rkeLYju7Nqu5', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '62ec5e10-b8d5-4be8-8830-a04392883a17', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '66745eb9-46d1-4260-a51e-bdbc31b13e6e', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '62ec5e10-b8d5-4be8-8830-a04392883a17'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:47:52,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:47:52,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer q8JAF2kuPxCZQbx2rkeLYju7Nqu5', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '62ec5e10-b8d5-4be8-8830-a04392883a17', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '66745eb9-46d1-4260-a51e-bdbc31b13e6e', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '62ec5e10-b8d5-4be8-8830-a04392883a17'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:47:52,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:47:52,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:47:52,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.19, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:47:52,190+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:47:52,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:47:52,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:47:52,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:47:52,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.191, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:47:52,191+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:47:52,192+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:47:52,192+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.192, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:47:52,192+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.211, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:47:52,211+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:47:52,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': '4PJFPEIPSOA0F4P5U6K5CK26SNVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:47:52 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': '4PJFPEIPSOA0F4P5U6K5CK26SNVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.212, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,212+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.213, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,213+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.214, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,214+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.215, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,215+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.231, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,231+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.232, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,232+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.232, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,232+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.232, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,232+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.232, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,232+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.232, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,232+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.233, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,233+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.234, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,234+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.234, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,234+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.234, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:47:52,234+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.234, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:47:52,234+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.234, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:47:52,234+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.234, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:47:52,234+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.235, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:47:52,235+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:47:52,236+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.236, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:47:52,236+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'time': 1737046072.237, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:47:52,237+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '126ac749-9ca0-49a3-ac9e-fc0b678e00ee', 'correlation_id': '62ec5e10-b8d5-4be8-8830-a04392883a17.66745eb9-46d1-4260-a51e-bdbc31b13e6e.rrt-6141769091407536663-b-geu2-146222-21131813-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67893838-43f8c353a985ba5588b04187'}}, {'raw_message': 'END RequestId: 126ac749-9ca0-49a3-ac9e-fc0b678e00ee\\n'}, {'raw_message': 'REPORT RequestId: 126ac749-9ca0-49a3-ac9e-fc0b678e00ee\\tDuration: 63.72 ms\\tBilled Duration: 64 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 4f440ac6-8c87-4a97-81be-abe63eaa8407 Version: $LATEST\\n'}, {'time': 1737046598.368, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 16:56:38,368+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer R7GQD3zN3ovSxvHunRCkg5qVfZoI', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '53120e58-33bd-4400-8649-f1eb93e4d0eb', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.369, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 16:56:38,369+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.369, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 16:56:38,369+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer R7GQD3zN3ovSxvHunRCkg5qVfZoI', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '53120e58-33bd-4400-8649-f1eb93e4d0eb', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.369, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 16:56:38,369+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.369, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 16:56:38,369+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.37, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 16:56:38,370+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.37, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 16:56:38,370+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.371, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 16:56:38,371+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.889, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 16:56:38,889+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.889, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 16:56:38,889+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.889, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 16:56:38,889+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.889, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:56:38,889+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.89, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 16:56:38,890+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.89, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 16:56:38,890+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046598.89, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 16:56:38,890+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.134, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 16:56:39,134+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.134, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 16:56:39,134+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'VL6S2CPDM8TMRD0R1VTBR4QD4JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 16:56:39 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'VL6S2CPDM8TMRD0R1VTBR4QD4JVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.135, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,135+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.137, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,137+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.138, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,138+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.139, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,139+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.147, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,147+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.148, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,148+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.148, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,148+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.148, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,148+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.148, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,148+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.148, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,148+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.149, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,149+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.149, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,149+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.149, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,149+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.149, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,149+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.149, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,149+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.15, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 16:56:39,150+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 16:56:39,151+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 16:56:39,151+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.151, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 16:56:39,151+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.17, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 16:56:39,170+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.17, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 16:56:39,170+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'time': 1737046599.171, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 16:56:39,171+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4f440ac6-8c87-4a97-81be-abe63eaa8407', 'correlation_id': 'f83bbc8b-d41d-4013-b7af-31850d0a9c27.53120e58-33bd-4400-8649-f1eb93e4d0eb.rrt-3057173199177491261-a-geu2-2406963-21057866-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67893a44-30ddd27ac4d3764868cfc538'}}, {'raw_message': 'END RequestId: 4f440ac6-8c87-4a97-81be-abe63eaa8407\\n'}, {'raw_message': 'REPORT RequestId: 4f440ac6-8c87-4a97-81be-abe63eaa8407\\tDuration: 821.90 ms\\tBilled Duration: 822 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1477.47 ms\\t\\nXRAY TraceId: 1-67893a44-30ddd27ac4d3764868cfc538\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 668660df-fa2d-41c8-9bbe-fc1a044d3542 Version: $LATEST\\n'}, {'time': 1737046839.609, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-16 17:00:39,609+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer h5gkN37nGHKSjbDz9KOdk6FStAKs', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '90c408a2-5c90-42f0-8b35-a9a864833e16', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '33751e4c-0665-4ea0-a7d2-b14d04882fe1', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '90c408a2-5c90-42f0-8b35-a9a864833e16'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-16 17:00:39,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-16 17:00:39,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer h5gkN37nGHKSjbDz9KOdk6FStAKs', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '90c408a2-5c90-42f0-8b35-a9a864833e16', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '33751e4c-0665-4ea0-a7d2-b14d04882fe1', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '90c408a2-5c90-42f0-8b35-a9a864833e16'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.61, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-16 17:00:39,610+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-16 17:00:39,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-16 17:00:39,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-16 17:00:39,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-16 17:00:39,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.611, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-16 17:00:39,611+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-16 17:00:39,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-16 17:00:39,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-16 17:00:39,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-16 17:00:39,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.612, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-16 17:00:39,612+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.613, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-16 17:00:39,613+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.789, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-16 17:00:39,789+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-16 17:00:39,790+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': '2EU5F9JULL6Q63KVU2H0J8T69NVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 16 Jan 2025 17:00:39 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': '2EU5F9JULL6Q63KVU2H0J8T69NVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,790+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,790+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,790+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,790+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,791+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,791+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,791+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,791+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,792+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,792+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,792+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,792+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,792+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,792+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.793, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,793+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.793, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,793+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.793, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,793+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.793, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,793+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.793, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,793+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.794, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,794+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.794, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,794+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.794, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,794+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.794, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,794+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.794, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,794+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.795, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,795+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.808, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,808+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.809, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,809+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.809, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-16 17:00:39,809+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.809, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-16 17:00:39,809+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.809, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-16 17:00:39,809+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.809, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-16 17:00:39,809+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.81, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-16 17:00:39,810+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.811, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-16 17:00:39,811+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.828, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-16 17:00:39,828+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'time': 1737046839.828, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-16 17:00:39,828+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '668660df-fa2d-41c8-9bbe-fc1a044d3542', 'correlation_id': '90c408a2-5c90-42f0-8b35-a9a864833e16.33751e4c-0665-4ea0-a7d2-b14d04882fe1.rrt-8290860736497172627-a-geu2-72042-1303953-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67893b37-dfefba1d7d8c86b2037eb60f'}}, {'raw_message': 'END RequestId: 668660df-fa2d-41c8-9bbe-fc1a044d3542\\n'}, {'raw_message': 'REPORT RequestId: 668660df-fa2d-41c8-9bbe-fc1a044d3542\\tDuration: 223.32 ms\\tBilled Duration: 224 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67893b37-dfefba1d7d8c86b2037eb60f\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: f7c3d77b-d622-4871-9772-aace52e6159f Version: $LATEST\\n'}, {'time': 1737106210.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-17 09:30:10,820+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer fn5sALU0puJ3ax9PhFRJtXUpK9Qc', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'e0c3f707-8e85-4561-8ccd-018dbac01da7', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.821, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-17 09:30:10,821+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.821, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-17 09:30:10,821+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer fn5sALU0puJ3ax9PhFRJtXUpK9Qc', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'e0c3f707-8e85-4561-8ccd-018dbac01da7', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-17 09:30:10,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-17 09:30:10,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.823, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-17 09:30:10,823+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.823, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-17 09:30:10,823+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106210.823, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-17 09:30:10,823+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.32, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-17 09:30:11,320+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.321, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-17 09:30:11,321+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.321, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-17 09:30:11,321+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.321, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-17 09:30:11,321+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-17 09:30:11,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-17 09:30:11,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.322, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-17 09:30:11,322+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-17 09:30:11,589+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.589, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-17 09:30:11,589+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'T7T8B5FGN9CIS85U3QCIT7PA5FVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Fri, 17 Jan 2025 09:30:11 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'T7T8B5FGN9CIS85U3QCIT7PA5FVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.59, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,590+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.59, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,590+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.59, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,590+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.59, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,590+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.591, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,591+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.592, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,592+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.593, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,593+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.593, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,593+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.593, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,593+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.593, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,593+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.593, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,593+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.594, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,594+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.594, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,594+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.594, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,594+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.594, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,594+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.594, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,594+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.594, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,594+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.595, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,595+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.595, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,595+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.595, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,595+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.595, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,595+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.595, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,595+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,596+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 09:30:11,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 09:30:11,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 09:30:11,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 09:30:11,597+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 09:30:11,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-17 09:30:11,617+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.617, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-17 09:30:11,617+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'time': 1737106211.618, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-17 09:30:11,618+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'f7c3d77b-d622-4871-9772-aace52e6159f', 'correlation_id': '03cc1109-d157-4ab8-97c1-0b83f3e9f1bb.e0c3f707-8e85-4561-8ccd-018dbac01da7.rrt-8245663644601394002-c-geu2-2565820-23094155-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678a2321-7c2584018bfb0701fb28a273'}}, {'raw_message': 'END RequestId: f7c3d77b-d622-4871-9772-aace52e6159f\\n'}, {'raw_message': 'REPORT RequestId: f7c3d77b-d622-4871-9772-aace52e6159f\\tDuration: 818.24 ms\\tBilled Duration: 819 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1499.01 ms\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 4516faac-18fd-4b29-94f4-46a36224c702 Version: $LATEST\\n'}, {'time': 1737130088.083, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-17 16:08:08,083+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 3IbKApqaAyqV6BhHL5JcZzOdBGli', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '74afea51-d46a-48b4-a3c5-e5fa64d9e816', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '04183919-fe73-4009-8455-ad0470f85b57', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.083, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-17 16:08:08,083+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.083, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-17 16:08:08,083+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer 3IbKApqaAyqV6BhHL5JcZzOdBGli', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '74afea51-d46a-48b4-a3c5-e5fa64d9e816', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '04183919-fe73-4009-8455-ad0470f85b57', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-17 16:08:08,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.084, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-17 16:08:08,084+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.085, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-17 16:08:08,085+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.085, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-17 16:08:08,085+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.085, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-17 16:08:08,085+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-17 16:08:08,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-17 16:08:08,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-17 16:08:08,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-17 16:08:08,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-17 16:08:08,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-17 16:08:08,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-17 16:08:08,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-17 16:08:08,819+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.819, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-17 16:08:08,819+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'ADVN355CLC4MA79N8HBFNU1KUJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Fri, 17 Jan 2025 16:08:08 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'ADVN355CLC4MA79N8HBFNU1KUJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,820+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,820+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,820+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.82, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,820+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.821, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,821+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.821, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,821+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.822, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,822+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.839, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,839+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.839, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,839+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.839, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,839+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.839, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,839+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.84, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,840+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.841, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,841+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.842, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,842+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.842, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,842+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.842, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,842+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.842, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,842+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.842, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,842+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.843, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,843+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.843, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-17 16:08:08,843+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.843, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-17 16:08:08,843+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.843, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-17 16:08:08,843+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.843, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-17 16:08:08,843+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.843, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-17 16:08:08,843+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.846, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-17 16:08:08,846+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.846, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-17 16:08:08,846+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'time': 1737130088.846, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-17 16:08:08,846+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '4516faac-18fd-4b29-94f4-46a36224c702', 'correlation_id': '74afea51-d46a-48b4-a3c5-e5fa64d9e816.04183919-fe73-4009-8455-ad0470f85b57.rrt-2133978156520042406-c-geu2-1692116-23334187-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678a8066-48486d001d7b234cb0a6594c'}}, {'raw_message': 'END RequestId: 4516faac-18fd-4b29-94f4-46a36224c702\\n'}, {'raw_message': 'REPORT RequestId: 4516faac-18fd-4b29-94f4-46a36224c702\\tDuration: 798.05 ms\\tBilled Duration: 799 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1309.62 ms\\t\\nXRAY TraceId: 1-678a8066-48486d001d7b234cb0a6594c\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 6f512b68-d58f-4198-84d0-104b7b2245d7 Version: $LATEST\\n'}, {'time': 1737364333.893, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-20 09:12:13,893+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'application/json; version=1.0', 'accept-encoding': 'gzip, deflate, br', 'Authorization': 'Bearer mLmol8wUtaxCrY3iIAAv1O23yY2H', 'cache-control': 'no-cache', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"194.101.81.12\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"RQI\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'NHSD-End-User-Organisation-ODS': 'RQI', 'NHSD-Request-ID': 'RQI', 'Postman-Token': '8535b425-30a1-40f1-8c58-faca4ffc49a5', 'User-Agent': 'PostmanRuntime/7.43.0', 'x-correlation-id': 'producer-post-search', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'RQI'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.894, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-20 09:12:13,894+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.894, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-20 09:12:13,894+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'headers': {'accept': 'application/json; version=1.0', 'accept-encoding': 'gzip, deflate, br', 'Authorization': 'Bearer mLmol8wUtaxCrY3iIAAv1O23yY2H', 'cache-control': 'no-cache', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"194.101.81.12\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"RQI\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'NHSD-End-User-Organisation-ODS': 'RQI', 'NHSD-Request-ID': 'RQI', 'Postman-Token': '8535b425-30a1-40f1-8c58-faca4ffc49a5', 'User-Agent': 'PostmanRuntime/7.43.0', 'x-correlation-id': 'producer-post-search', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'RQI'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.894, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-20 09:12:13,894+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'metadata': {'pointer_types': [], 'ods_code': 'RQI', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'NRL', 'developer_app_id': '63e8f52c-e4cc-4d54-970c-2950d9f517ed'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.894, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-20 09:12:13,894+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.896, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-20 09:12:13,896+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|736366004', 'http://snomed.info/sct|735324008', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.896, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-20 09:12:13,896+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'body': '{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|9694201489\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364333.896, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-20 09:12:13,896+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9694201489', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.393, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-20 09:12:14,393+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.393, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-20 09:12:14,393+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.394, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-20 09:12:14,394+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.394, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-20 09:12:14,394+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.395, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-20 09:12:14,395+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|736366004', 'http://snomed.info/sct|735324008', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.395, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-20 09:12:14,395+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|736366004', 'http://snomed.info/sct|735324008', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.395, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-20 09:12:14,395+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9694201489', ':type_0': 'http://snomed.info/sct|887701000000100', ':type_1': 'http://snomed.info/sct|736253002', ':type_2': 'http://snomed.info/sct|736373009', ':type_3': 'http://snomed.info/sct|861421000000109', ':type_4': 'http://snomed.info/sct|325691000000100', ':type_5': 'http://snomed.info/sct|1363501000000100', ':type_6': 'http://snomed.info/sct|16521000000101', ':type_7': 'http://snomed.info/sct|736366004', ':type_8': 'http://snomed.info/sct|735324008', ':type_9': 'http://snomed.info/sct|824321000000109', ':type_10': 'http://snomed.info/sct|2181441000000107', ':type_11': 'https://nicip.nhs.uk|MAULR', ':type_12': 'https://nicip.nhs.uk|MAXIB'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10 OR #pointer_type = :type_11 OR #pointer_type = :type_12)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.669, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-20 09:12:14,669+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'stats': {'count': 27, 'scanned_count': 27, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.67, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-20 09:12:14,670+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'result': {'Items': [{'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-2181441000000107', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-2181441000000107#CO#2024-10-01T11:16:07.866Z#D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\": \"DocumentReference\", \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\", \"meta\": {\"lastUpdated\": \"2024-10-01T11:16:07.866Z\"}, \"status\": \"current\", \"type\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"2181441000000107\", \"display\": \"Personalised Care and Support Plan\"}]}, \"category\": [{\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"734163000\", \"display\": \"Care plan\"}]}], \"subject\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhs-number\", \"value\": \"9694201489\"}}, \"date\": \"2024-10-01T11:16:05+00:00\", \"author\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}], \"custodian\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}, \"content\": [{\"attachment\": {\"contentType\": \"application/pdf\", \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:unstructured\", \"display\": \"Unstructured Document\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"dynamic\", \"display\": \"Dynamic\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}, {\"attachment\": {\"contentType\": \"text/html\", \"url\": \"https://www.google.com/\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:record-contact\", \"display\": \"Contact details (HTTP Unsecured)\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"static\", \"display\": \"Static\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}], \"context\": {\"period\": {\"start\": \"2022-02-28T12:04:38.3143068+00:00\", \"end\": \"2035-08-15T11:12:53Z\"}, \"practiceSetting\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"310167005\", \"display\": \"Urology service\"}]}, \"related\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\", \"value\": \"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|2181441000000107', 'created_on': '2024-10-01T11:16:07.866Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T11:55:34.953Z#D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'id': 'RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'pk': 'D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-cab62fc5-f194-497d-a390-cf79f57bf967\",\"meta\":{\"lastUpdated\":\"2024-12-19T11:55:34.953Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planPM\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T11:55:34.953Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-12-18T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T11:55:34.953Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:02:59.346Z#D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'id': 'RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'pk': 'D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-557c78bb-d45d-444e-b477-96332f86f38d\",\"meta\":{\"lastUpdated\":\"2024-12-19T14:02:59.346Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:02:59.346Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\" \",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:02:59.346Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': '2024-12-23T12:06:47.960Z', 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:13:10.436Z#D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'pk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449\",\"meta\":{\"lastUpdated\":\"2024-12-23T12:06:47.960Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:13:10.436Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-26T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:13:10.436Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:36:02.992Z#D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'id': 'RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'pk': 'D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905\",\"meta\":{\"lastUpdated\":\"2024-12-19T14:36:02.992Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:36:02.992Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"type\":\"DocumentReference\",\"identifier\":{\"value\":\"RQI-bfc00047-aa81-4d44-99c5-d0986df3c47c\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-15T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:36:02.992Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-20T09:07:26.275Z#D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-20T09:07:26.275Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-20T09:07:23+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-20T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-20T09:07:26.275Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-20T10:26:05.362Z#D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-20T10:26:05.362Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planJM\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-20T10:26:02+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-12-13T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-20T10:26:05.362Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T10:36:51.103Z#D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'id': 'RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'pk': 'D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5\",\"meta\":{\"lastUpdated\":\"2024-12-23T10:36:51.103Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T10:36:51.103Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\" \",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T10:36:51.103Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:29:49.822Z#D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'id': 'RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'pk': 'D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-85892bc8-ca57-4220-820e-2c0e30de9010\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:29:49.822Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:29:49.822Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-11-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:29:49.822Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:37:29.409Z#D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'id': 'RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'pk': 'D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fc13551d-fd04-43a5-a882-2f465a861f00\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:37:29.409Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:37:29.409Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:37:29.409Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:42:00.163Z#D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'id': 'RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'pk': 'D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:42:00.163Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:42:00.163Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-12-22T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:42:00.163Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T12:01:02.368Z#D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'id': 'RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'pk': 'D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-c7686130-bab9-42c1-9e46-db62c91a0315\",\"meta\":{\"lastUpdated\":\"2024-12-23T12:01:02.368Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T12:01:02.368Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"type\":\"DocumentReference\",\"identifier\":{\"value\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563448\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-24T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T12:01:02.368Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T13:36:39.307Z#D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-23T13:36:39.307Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T13:36:32+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-27T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T13:36:39.307Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T14:04:17.520Z#D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-23T14:04:17.520Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T14:04:15+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"identifier\":{\"value\":\"RQI-4ca0da3f-beea-11ef-b825-0224f2d65e7a-585a5436335a5a394257\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-28T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T14:04:17.520Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T14:20:27.892Z#D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'id': 'RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'pk': 'D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a\",\"meta\":{\"lastUpdated\":\"2024-12-23T14:20:27.892Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T14:20:27.892Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T14:20:27.892Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T12:10:44.258Z#D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'id': 'RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'pk': 'D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9\",\"meta\":{\"lastUpdated\":\"2025-01-03T12:10:44.258Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-03T12:10:44.258Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2025-01-03T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T12:10:44.258Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'X26', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#X26-test-doc-with-pdf-contact-details', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T12:10:44.258Z#D#X26-test-doc-with-pdf-contact-details', 'id': 'X26-test-doc-with-pdf-contact-details', 'pk': 'D#X26-test-doc-with-pdf-contact-details', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"X26-test-doc-with-pdf-contact-details\",\"meta\":{\"lastUpdated\":\"2025-01-03T12:10:44.258Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2020-05-12T18:43:16+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"X26\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RXA\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nrls.cwp.nhs.uk/1234.pdf\",\"creation\":\"2010-11-30T12:00:00+00:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2020-05-12T18:43:16+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"708168004\",\"display\":\"Mental health service\"}]}}}', 'custodian': 'RXA', 'author': 'X26', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T12:10:44.258Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RJ11', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T14:48:17.913Z#D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'id': 'RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'pk': 'D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452\",\"meta\":{\"lastUpdated\":\"2025-01-03T14:48:17.913Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-03T14:48:17.913Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RJ11\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RJ11', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T14:48:17.913Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-07T16:18:58.045Z#D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'id': 'RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'pk': 'D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590\",\"meta\":{\"lastUpdated\":\"2025-01-07T16:18:58.045Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-07T16:18:58.045Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-07T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-07T16:18:58.045Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-08T11:38:26.612Z#D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-08T11:38:26.612Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-08T11:38:20+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-08T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-08T11:38:26.612Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-09T10:52:37.515Z#D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-09T10:52:37.515Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-09T10:52:34+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-12-27T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-09T10:52:37.515Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T10:28:52.528Z#D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'id': 'RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'pk': 'D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0ba107a1-b719-47e2-97ea-3da1970d4500\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:28:52.528Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T10:28:52.528Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-10T10:26:00+00:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T10:28:52.528Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T11:25:09.969Z#D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:25:09.969Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T11:25:09+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-08T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T11:25:09.969Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T13:26:40.445Z#D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'id': 'RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'pk': 'D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c\",\"meta\":{\"lastUpdated\":\"2025-01-10T13:26:40.445Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T13:26:40.445Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2025-01-06T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T13:26:40.445Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RJ11', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-20T08:55:10.741Z#D#RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4', 'id': 'RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4', 'pk': 'D#RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4\",\"meta\":{\"lastUpdated\":\"2025-01-20T08:55:10.741Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-20T08:55:10.741Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RJ11\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RJ11', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-20T08:55:10.741Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736366004', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736366004#CO#2024-12-17T17:24:55.810Z#D#RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:24:55.810Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736366004\",\"display\":\"Advance care plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-17T17:24:53+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-12-17T05:24:52+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-12-17T05:24:52+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736366004', 'created_on': '2024-12-17T17:24:55.810Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736366004', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a', 'patient_sort': 'C#SCT-734163000#T#SCT-736366004#CO#2024-12-19T11:03:46.512Z#D#RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a', 'id': 'RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a', 'pk': 'D#RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a\",\"meta\":{\"lastUpdated\":\"2024-12-19T11:03:46.512Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736366004\",\"display\":\"Advance care plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T11:03:46.512Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736366004', 'created_on': '2024-12-19T11:03:46.512Z'}], 'Count': 27, 'ScannedCount': 27, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 8.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 8.5}}}, 'ResponseMetadata': {'RequestId': 'MS4Q07MMP9NUA1P1489P98I9SVVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Mon, 20 Jan 2025 09:12:14 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '82178', 'connection': 'keep-alive', 'x-amzn-requestid': 'MS4Q07MMP9NUA1P1489P98I9SVVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '3103926924'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.671, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,671+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.671, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,671+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.671, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,671+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.671, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,671+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.672, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,672+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.673, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,673+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.673, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,673+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'cab62fc5-f194-497d-a390-cf79f57bf967', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.673, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,673+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.673, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,673+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.673, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,673+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.674, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,674+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.674, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,674+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '557c78bb-d45d-444e-b477-96332f86f38d', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.674, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,674+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.674, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,674+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.674, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,674+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.675, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,675+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.675, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,675+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.675, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,675+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.675, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,675+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.675, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,675+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.675, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,675+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.676, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,676+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'e9e2f6be-d149-4f0e-80b1-b880713e7905', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.676, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,676+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.676, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,676+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.676, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,676+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.689, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,689+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.689, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,689+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'd367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.689, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,689+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.689, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,689+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'd017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.69, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,690+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '3079125e-fc2e-4174-a388-cccf27fcc3d5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.691, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,691+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.692, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,692+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.692, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,692+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '85892bc8-ca57-4220-820e-2c0e30de9010', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.692, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,692+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.692, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,692+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.692, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,692+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'count': 9, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.709, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,709+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.709, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,709+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'fc13551d-fd04-43a5-a882-2f465a861f00', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.709, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,709+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.709, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,709+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.71, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,710+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'count': 10, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.71, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,710+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.71, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,710+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.71, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,710+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.71, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,710+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.71, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,710+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'count': 11, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.711, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,711+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.711, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,711+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'c7686130-bab9-42c1-9e46-db62c91a0315', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.711, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,711+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.711, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,711+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.711, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,711+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'count': 12, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,712+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,712+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,712+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,712+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,712+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 13, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.712, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,712+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,713+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,713+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,713+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,713+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 14, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,713+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.713, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,713+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'count': 15, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.714, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,714+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,715+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'count': 16, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,715+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,715+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'X26', 'document_id': 'test-doc-with-pdf-contact-details', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,715+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.715, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,715+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RXA', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,716+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'X26-test-doc-with-pdf-contact-details', 'count': 17, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,716+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,716+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RJ11', 'document_id': '7e9587a3-2ce6-40e0-8737-afd6c6770452', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,716+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.716, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,716+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RJ11', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,729+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'count': 18, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,729+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,729+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,729+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.729, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,729+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,730+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'count': 19, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,730+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,730+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.73, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,730+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,731+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,731+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 20, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,731+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,731+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'd54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,731+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.731, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,731+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,732+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 21, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,732+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,732+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '0ba107a1-b719-47e2-97ea-3da1970d4500', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,732+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.732, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,732+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'count': 22, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.75, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,750+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.75, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,750+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.75, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,750+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 23, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.75, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,750+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.75, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,750+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.75, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,750+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.751, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,751+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.751, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,751+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'count': 24, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.751, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,751+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.751, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,751+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RJ11', 'document_id': 'd37bc7e6-1479-4863-9d70-0d0772dbcff4', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.751, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,751+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.751, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,751+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RJ11', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.752, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,752+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4', 'count': 25, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.752, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,752+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.752, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,752+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': 'd3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.752, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,752+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.752, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,752+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.753, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,753+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 26, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.753, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:14,753+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.753, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:14,753+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'producer_id': 'RQI', 'document_id': '3e2e3926-79ae-4d09-a199-418f25c8fe9a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.753, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:14,753+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.753, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:14,753+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.753, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:14,753+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'id': 'RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a', 'count': 27, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.771, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-20 09:12:14,771+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.772, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-20 09:12:14,772+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 27,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9694201489\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-10-01T11:16:07.866Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"2181441000000107\",\\n \"display\": \"Personalised Care and Support Plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-10-01T11:16:05+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-cab62fc5-f194-497d-a390-cf79f57bf967\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T11:55:34.953Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planPM\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T11:55:34.953Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-18T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-557c78bb-d45d-444e-b477-96332f86f38d\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T14:02:59.346Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:02:59.346Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \" \",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T12:06:47.960Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:13:10.436Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-26T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T14:36:02.992Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:36:02.992Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"type\": \"DocumentReference\",\\n \"identifier\": {\\n \"value\": \"RQI-bfc00047-aa81-4d44-99c5-d0986df3c47c\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-15T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-20T09:07:26.275Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-20T09:07:23+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-20T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-20T10:26:05.362Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planJM\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-20T10:26:02+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-12-13T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T10:36:51.103Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T10:36:51.103Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \" \",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-85892bc8-ca57-4220-820e-2c0e30de9010\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:29:49.822Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:29:49.822Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-11-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fc13551d-fd04-43a5-a882-2f465a861f00\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:37:29.409Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:37:29.409Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:42:00.163Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:42:00.163Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-22T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-c7686130-bab9-42c1-9e46-db62c91a0315\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T12:01:02.368Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T12:01:02.368Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"type\": \"DocumentReference\",\\n \"identifier\": {\\n \"value\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563448\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-24T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T13:36:39.307Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T13:36:32+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-27T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T14:04:17.520Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T14:04:15+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"identifier\": {\\n \"value\": \"RQI-4ca0da3f-beea-11ef-b825-0224f2d65e7a-585a5436335a5a394257\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-28T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T14:20:27.892Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T14:20:27.892Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T12:10:44.258Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-03T12:10:44.258Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2025-01-03T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"X26-test-doc-with-pdf-contact-details\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T12:10:44.258Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2020-05-12T18:43:16+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"X26\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RXA\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nrls.cwp.nhs.uk/1234.pdf\",\\n \"creation\": \"2010-11-30T12:00:00+00:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2020-05-12T18:43:16+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"708168004\",\\n \"display\": \"Mental health service\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T14:48:17.913Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-03T14:48:17.913Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RJ11\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-07T16:18:58.045Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-07T16:18:58.045Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-07T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-08T11:38:26.612Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-08T11:38:20+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-08T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-09T10:52:37.515Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-09T10:52:34+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-12-27T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0ba107a1-b719-47e2-97ea-3da1970d4500\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:28:52.528Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T10:28:52.528Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-10T10:26:00+00:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:25:09.969Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T11:25:09+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-08T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T13:26:40.445Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T13:26:40.445Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2025-01-06T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RJ11-d37bc7e6-1479-4863-9d70-0d0772dbcff4\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-20T08:55:10.741Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-20T08:55:10.741Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RJ11\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d3cfe87b-bc9b-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:24:55.810Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736366004\",\\n \"display\": \"Advance care plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-17T17:24:53+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-12-17T05:24:52+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-12-17T05:24:52+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3e2e3926-79ae-4d09-a199-418f25c8fe9a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T11:03:46.512Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736366004\",\\n \"display\": \"Advance care plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T11:03:46.512Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'time': 1737364334.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-20 09:12:14,790+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '6f512b68-d58f-4198-84d0-104b7b2245d7', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-2', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678e136c-4e33397b861c7a9663a22816'}}, {'raw_message': 'END RequestId: 6f512b68-d58f-4198-84d0-104b7b2245d7\\n'}, {'raw_message': 'REPORT RequestId: 6f512b68-d58f-4198-84d0-104b7b2245d7\\tDuration: 917.73 ms\\tBilled Duration: 918 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\tInit Duration: 1521.30 ms\\t\\n'}, {'raw_message': 'START RequestId: a91c12c0-503b-4b77-8ed2-69c02d441120 Version: $LATEST\\n'}, {'time': 1737364352.64, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-20 09:12:32,640+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'application/json; version=1.0', 'accept-encoding': 'gzip, deflate, br', 'Authorization': 'Bearer mLmol8wUtaxCrY3iIAAv1O23yY2H', 'cache-control': 'no-cache', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"194.101.81.12\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"RQI\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'NHSD-End-User-Organisation-ODS': 'RQI', 'NHSD-Request-ID': 'RQI', 'Postman-Token': 'f662eff1-e586-4e4a-910c-efc26ce575e1', 'User-Agent': 'PostmanRuntime/7.43.0', 'x-correlation-id': 'producer-post-search', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'RQI'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.641, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-20 09:12:32,641+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.641, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-20 09:12:32,641+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'headers': {'accept': 'application/json; version=1.0', 'accept-encoding': 'gzip, deflate, br', 'Authorization': 'Bearer mLmol8wUtaxCrY3iIAAv1O23yY2H', 'cache-control': 'no-cache', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"194.101.81.12\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"RQI\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'NHSD-End-User-Organisation-ODS': 'RQI', 'NHSD-Request-ID': 'RQI', 'Postman-Token': 'f662eff1-e586-4e4a-910c-efc26ce575e1', 'User-Agent': 'PostmanRuntime/7.43.0', 'x-correlation-id': 'producer-post-search', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'RQI'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.641, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-20 09:12:32,641+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'metadata': {'pointer_types': [], 'ods_code': 'RQI', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'NRL', 'developer_app_id': '63e8f52c-e4cc-4d54-970c-2950d9f517ed'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.641, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-20 09:12:32,641+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.642, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-20 09:12:32,642+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|736366004', 'http://snomed.info/sct|735324008', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.642, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-20 09:12:32,642+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'body': '{\"type\":\"http://snomed.info/sct|2181441000000107\",\\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|9694201489\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.642, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-20 09:12:32,642+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9694201489', 'custodian_identifier': None, 'type': 'http://snomed.info/sct|2181441000000107', 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.642, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-20 09:12:32,642+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.642, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-20 09:12:32,642+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.642, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-20 09:12:32,642+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.643, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-20 09:12:32,643+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.643, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-20 09:12:32,643+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|2181441000000107'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.643, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-20 09:12:32,643+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|2181441000000107'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.643, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-20 09:12:32,643+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key AND begins_with(patient_sort, :patient_sort)', 'ExpressionAttributeValues': {':patient_key': 'P#9694201489', ':patient_sort': 'C#SCT-734163000#T#SCT-2181441000000107'}, 'ReturnConsumedCapacity': 'INDEXES'}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.649, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-20 09:12:32,649+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'stats': {'count': 1, 'scanned_count': 1, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.649, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-20 09:12:32,649+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'result': {'Items': [{'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-2181441000000107', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-2181441000000107#CO#2024-10-01T11:16:07.866Z#D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\": \"DocumentReference\", \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\", \"meta\": {\"lastUpdated\": \"2024-10-01T11:16:07.866Z\"}, \"status\": \"current\", \"type\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"2181441000000107\", \"display\": \"Personalised Care and Support Plan\"}]}, \"category\": [{\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"734163000\", \"display\": \"Care plan\"}]}], \"subject\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhs-number\", \"value\": \"9694201489\"}}, \"date\": \"2024-10-01T11:16:05+00:00\", \"author\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}], \"custodian\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}, \"content\": [{\"attachment\": {\"contentType\": \"application/pdf\", \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:unstructured\", \"display\": \"Unstructured Document\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"dynamic\", \"display\": \"Dynamic\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}, {\"attachment\": {\"contentType\": \"text/html\", \"url\": \"https://www.google.com/\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:record-contact\", \"display\": \"Contact details (HTTP Unsecured)\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"static\", \"display\": \"Static\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}], \"context\": {\"period\": {\"start\": \"2022-02-28T12:04:38.3143068+00:00\", \"end\": \"2035-08-15T11:12:53Z\"}, \"practiceSetting\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"310167005\", \"display\": \"Urology service\"}]}, \"related\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\", \"value\": \"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|2181441000000107', 'created_on': '2024-10-01T11:16:07.866Z'}], 'Count': 1, 'ScannedCount': 1, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 0.5, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 0.5}}}, 'ResponseMetadata': {'RequestId': 'AB1O582QRH1IBRQP2SGA3AEVARVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Mon, 20 Jan 2025 09:12:32 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '3741', 'connection': 'keep-alive', 'x-amzn-requestid': 'AB1O582QRH1IBRQP2SGA3AEVARVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '1608378471'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.65, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-20 09:12:32,650+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.65, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-20 09:12:32,650+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'producer_id': 'RQI', 'document_id': '8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.65, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-20 09:12:32,650+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.65, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-20 09:12:32,650+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.651, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-20 09:12:32,651+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.651, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-20 09:12:32,651+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.651, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-20 09:12:32,651+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 1,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9694201489&type=http://snomed.info/sct|2181441000000107\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-10-01T11:16:07.866Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"2181441000000107\",\\n \"display\": \"Personalised Care and Support Plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-10-01T11:16:05+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'time': 1737364352.651, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-20 09:12:32,651+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'a91c12c0-503b-4b77-8ed2-69c02d441120', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-3', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678e1380-c6252d782ae56c801142819a'}}, {'raw_message': 'END RequestId: a91c12c0-503b-4b77-8ed2-69c02d441120\\n'}, {'raw_message': 'REPORT RequestId: a91c12c0-503b-4b77-8ed2-69c02d441120\\tDuration: 13.36 ms\\tBilled Duration: 14 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\t\\n'}, {'raw_message': 'START RequestId: 8dfb9d1d-d597-4adc-8f4e-afb8bc202d93 Version: $LATEST\\n'}, {'time': 1737364401.596, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-20 09:13:21,596+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'application/json; version=1.0', 'accept-encoding': 'gzip, deflate, br', 'Authorization': 'Bearer mLmol8wUtaxCrY3iIAAv1O23yY2H', 'cache-control': 'no-cache', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"194.101.81.12\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"RQI\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'NHSD-End-User-Organisation-ODS': 'RQI', 'NHSD-Request-ID': 'RQI', 'Postman-Token': '89a358a0-4d49-40f4-ba57-38b78f06dc17', 'User-Agent': 'PostmanRuntime/7.43.0', 'x-correlation-id': 'producer-post-search', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'RQI'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-20 09:13:21,597+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-20 09:13:21,597+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'headers': {'accept': 'application/json; version=1.0', 'accept-encoding': 'gzip, deflate, br', 'Authorization': 'Bearer mLmol8wUtaxCrY3iIAAv1O23yY2H', 'cache-control': 'no-cache', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"NRL\",\"developer.app.id\":\"63e8f52c-e4cc-4d54-970c-2950d9f517ed\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"194.101.81.12\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"RQI\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52\"}', 'NHSD-Correlation-ID': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'NHSD-End-User-Organisation-ODS': 'RQI', 'NHSD-Request-ID': 'RQI', 'Postman-Token': '89a358a0-4d49-40f4-ba57-38b78f06dc17', 'User-Agent': 'PostmanRuntime/7.43.0', 'x-correlation-id': 'producer-post-search', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'RQI'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-20 09:13:21,597+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'metadata': {'pointer_types': [], 'ods_code': 'RQI', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-6981ad7d-cff4-4613-93d0-df60e5e2fc52', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'NRL', 'developer_app_id': '63e8f52c-e4cc-4d54-970c-2950d9f517ed'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-20 09:13:21,597+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-20 09:13:21,597+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|736366004', 'http://snomed.info/sct|735324008', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.597, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-20 09:13:21,597+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'body': '{\"type\":\"http://snomed.info/sct|\",\\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|9694201489\",\\n\"custodian:identifier\":\"https://fhir.nhs.uk/Id/ods-organization-code|RQI\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-20 09:13:21,598+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9694201489', 'custodian_identifier': 'https://fhir.nhs.uk/Id/ods-organization-code|RQI', 'type': 'http://snomed.info/sct|', 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-20 09:13:21,598+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-20 09:13:21,598+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-20 09:13:21,598+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-20 09:13:21,598+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:54', 'message': 'Invalid document type provided in the request body', 'timestamp': '2025-01-20 09:13:21,599+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'type': \"root='http://snomed.info/sct|'\", 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|736366004', 'http://snomed.info/sct|735324008', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB'], 'log_reference': 'CONPOSTSEARCH002', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-20 09:13:21,599+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'status_code': '400', 'response': {'statusCode': '400', 'body': '{\\n \"resourceType\": \"OperationOutcome\",\\n \"issue\": [\\n {\\n \"severity\": \"error\",\\n \"code\": \"code-invalid\",\\n \"details\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1\",\\n \"code\": \"INVALID_CODE_SYSTEM\",\\n \"display\": \"Invalid code system\"\\n }\\n ]\\n },\\n \"diagnostics\": \"The provided type does not match the allowed types for this organisation\",\\n \"expression\": [\\n \"type\"\\n ]\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'time': 1737364401.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-20 09:13:21,599+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '8dfb9d1d-d597-4adc-8f4e-afb8bc202d93', 'correlation_id': 'RQI.producer-post-search.rrt-3689739306837080722-c-geu2-3916251-29166713-5', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-678e13b1-1fddce0d4503fa0aaa2ff7c7'}}, {'raw_message': 'END RequestId: 8dfb9d1d-d597-4adc-8f4e-afb8bc202d93\\n'}, {'raw_message': 'REPORT RequestId: 8dfb9d1d-d597-4adc-8f4e-afb8bc202d93\\tDuration: 5.40 ms\\tBilled Duration: 6 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\t\\nXRAY TraceId: 1-678e13b1-1fddce0d4503fa0aaa2ff7c7\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: 7b462527-ee50-4211-b20f-fde5ed06f91c Version: $LATEST\\n'}, {'time': 1737628196.092, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-23 10:29:56,092+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer MzKOT1y7uJ2CDW7wej5gI7jpQlLV', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'e12747be-f617-4509-9b22-686cbac2a12e', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-23 10:29:56,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.093, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-23 10:29:56,093+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer MzKOT1y7uJ2CDW7wej5gI7jpQlLV', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': 'e12747be-f617-4509-9b22-686cbac2a12e', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-23 10:29:56,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.094, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-23 10:29:56,094+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-23 10:29:56,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-23 10:29:56,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.095, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-23 10:29:56,095+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.547, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-23 10:29:56,547+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.547, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-23 10:29:56,547+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.547, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-23 10:29:56,547+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.547, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-23 10:29:56,547+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.548, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-23 10:29:56,548+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.548, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-23 10:29:56,548+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.548, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-23 10:29:56,548+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.788, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-23 10:29:56,788+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.788, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-23 10:29:56,788+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': '0CRIFIKOOHOODM7TFQ6Q6FODD3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 23 Jan 2025 10:29:56 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': '0CRIFIKOOHOODM7TFQ6Q6FODD3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.788, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,788+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.788, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,788+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.789, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,789+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.789, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,789+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,790+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,790+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,790+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,790+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.79, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,790+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,791+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,791+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,791+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,791+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.791, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,791+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,792+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,792+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,792+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,792+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.792, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,792+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.804, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,804+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.805, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,805+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.806, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,806+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,807+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:29:56,807+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:29:56,807+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:29:56,807+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:29:56,807+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.807, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:29:56,807+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-23 10:29:56,826+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.826, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-23 10:29:56,826+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'time': 1737628196.827, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-23 10:29:56,827+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '7b462527-ee50-4211-b20f-fde5ed06f91c', 'correlation_id': '47b375dd-7a30-4ef7-9ce0-3f53fd4bc2fa.e12747be-f617-4509-9b22-686cbac2a12e.rrt-8389882276964590663-a-geu2-3262825-35739497-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67921a22-f724a3d251d5a3dad42cbf36'}}, {'raw_message': 'END RequestId: 7b462527-ee50-4211-b20f-fde5ed06f91c\\n'}, {'raw_message': 'REPORT RequestId: 7b462527-ee50-4211-b20f-fde5ed06f91c\\tDuration: 753.14 ms\\tBilled Duration: 754 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1257.08 ms\\t\\nXRAY TraceId: 1-67921a22-f724a3d251d5a3dad42cbf36\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 52223253-9acf-4768-8aae-1a952eeb11ab Version: $LATEST\\n'}, {'time': 1737628214.415, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-23 10:30:14,415+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer MLHeJLanGat31hiQDgwvOMRs93eq', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '7fd2e4f8-9d18-45ca-a236-b39082d3e078', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-23 10:30:14,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-23 10:30:14,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'headers': {'accept': 'version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer MLHeJLanGat31hiQDgwvOMRs93eq', 'content-type': 'application/json', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nir-poc-testharness\",\"developer.app.id\":\"f9c33118-1462-4d92-9900-39bd9b647adc\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"13.43.220.243\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"W4V6Q\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e\"}', 'nhsd-correlation-id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'NHSD-End-User-Organisation-ODS': 'W4V6Q', 'NHSD-Request-ID': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b', 'User-Agent': 'python-requests/2.31.0', 'x-correlation-id': '7fd2e4f8-9d18-45ca-a236-b39082d3e078', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-23 10:30:14,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'metadata': {'pointer_types': [], 'ods_code': 'W4V6Q', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRLTestHarness-f7a01a1b-c96c-4d22-b297-97f7f36df50e', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nir-poc-testharness', 'developer_app_id': 'f9c33118-1462-4d92-9900-39bd9b647adc'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.416, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-23 10:30:14,416+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9693892992\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9693892992', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.417, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-23 10:30:14,417+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.418, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-23 10:30:14,418+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.418, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-23 10:30:14,418+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'nhs_number': '9693892992', 'pointer_types': ['http://snomed.info/sct|736253002', 'https://nicip.nhs.uk|MAULR', 'https://nicip.nhs.uk|MAXIB', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|1382601000000107', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|24761000000103', 'http://snomed.info/sct|16521000000101'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.418, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-23 10:30:14,418+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9693892992', ':type_0': 'http://snomed.info/sct|736253002', ':type_1': 'https://nicip.nhs.uk|MAULR', ':type_2': 'https://nicip.nhs.uk|MAXIB', ':type_3': 'http://snomed.info/sct|1363501000000100', ':type_4': 'http://snomed.info/sct|1382601000000107', ':type_5': 'http://snomed.info/sct|325691000000100', ':type_6': 'http://snomed.info/sct|736373009', ':type_7': 'http://snomed.info/sct|861421000000109', ':type_8': 'http://snomed.info/sct|887701000000100', ':type_9': 'http://snomed.info/sct|24761000000103', ':type_10': 'http://snomed.info/sct|16521000000101'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8 OR #pointer_type = :type_9 OR #pointer_type = :type_10)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-23 10:30:14,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'stats': {'count': 8, 'scanned_count': 8, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-23 10:30:14,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'result': {'Items': [{'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T15:46:58.724Z#D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'pk': 'D#RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\"meta\":{\"lastUpdated\":\"2024-12-16T15:46:58.724Z\"},\"status\":\"current\",\"docStatus\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T15:46:58.724Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T15:46:58.724Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:09:30.496Z#D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'pk': 'D#RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:09:30.496Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:09:30.496Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:09:30.496Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T16:53:25.697Z#D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'pk': 'D#RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\"meta\":{\"lastUpdated\":\"2024-12-16T16:53:25.697Z\"},\"status\":\"current\",\"docStatus\":\"amended\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T16:53:25.697Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T16:53:25.697Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-16T17:23:37.526Z#D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'pk': 'D#RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\"meta\":{\"lastUpdated\":\"2024-12-16T17:23:37.526Z\"},\"status\":\"current\",\"docStatus\":\"entered-in-error\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-16T17:23:37.526Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-16T17:23:37.526Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2024-12-17T17:27:03.712Z#D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'pk': 'D#RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\"meta\":{\"lastUpdated\":\"2024-12-17T17:27:03.712Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2024-12-17T17:27:03.712Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2024-12-17T17:27:03.712Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T10:44:46.099Z#D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'pk': 'D#RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:44:46.099Z\"},\"status\":\"current\",\"docStatus\":\"preliminary\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T10:44:46.099Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T10:44:46.099Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-10T11:01:04.388Z#D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'pk': 'D#RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:01:04.388Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-10T11:01:04.388Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-10T11:01:04.388Z'}, {'nhs_number': '9693892992', 'version': '1', 'category_id': 'SCT-721981007', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'updated_on': None, 'patient_key': 'P#9693892992', 'custodian_suffix': None, 'type_id': 'NICIP-MAULR', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.1', 'category': 'http://snomed.info/sct|721981007', 'sk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'patient_sort': 'C#SCT-721981007#T#NICIP-MAULR#CO#2025-01-16T15:18:20.521Z#D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'pk': 'D#RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\"meta\":{\"lastUpdated\":\"2025-01-16T15:18:20.521Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"},\"identifier\":[{\"type\":{\"text\":\"Accession-Number\"},\"value\":\"Y05868.123456789\"}],\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"https://nicip.nhs.uk\",\"code\":\"MAULR\",\"display\":\"MRA Upper Limb Rt\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"721981007\",\"display\":\"Diagnostic studies report\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9693892992\"}},\"date\":\"2025-01-16T15:18:20.521Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\"creation\":\"2024-04-23T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2023-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'https://nicip.nhs.uk|MAULR', 'created_on': '2025-01-16T15:18:20.521Z'}], 'Count': 8, 'ScannedCount': 8, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 3.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 3.0}}}, 'ResponseMetadata': {'RequestId': 'KF6EQMAPIAQ9NQRS99CAPA9GM3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 23 Jan 2025 10:30:14 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '26481', 'connection': 'keep-alive', 'x-amzn-requestid': 'KF6EQMAPIAQ9NQRS99CAPA9GM3VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '424558445'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': 'a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.427, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,427+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': 'f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': 'ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.428, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,428+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.429, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,429+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.429, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,429+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.429, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,429+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': 'ce35cea8-1b3f-492e-9808-ac075281d37a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.429, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,429+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.429, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,429+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.429, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,429+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-ce35cea8-1b3f-492e-9808-ac075281d37a', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': '0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.43, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,430+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': '3b5c8a53-5af5-40be-b813-3230d2064f6b', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': '692a1def-e06c-48a1-a63d-4e0eb42fa697', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.431, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,431+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.432, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,432+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.432, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-23 10:30:14,432+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.432, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-23 10:30:14,432+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'producer_id': 'RQI', 'document_id': '7dea586e-a51f-42ba-a40b-54323981e1a5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.432, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-23 10:30:14,432+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.444, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-23 10:30:14,444+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.445, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-23 10:30:14,445+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'id': 'RQI-7dea586e-a51f-42ba-a40b-54323981e1a5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.446, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-23 10:30:14,446+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.446, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-23 10:30:14,446+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 8,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9693892992\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-a82a88f6-9cdb-4b0f-a00b-a1fccbd5d0d8\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T15:46:58.724Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"final\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T15:46:58.724Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f34b67ee-29fe-41e7-939c-d4bc7f0e4827\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:09:30.496Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:09:30.496Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ceb9b2d0-d56d-4d2d-9e1d-195701cd8a3c\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T16:53:25.697Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"amended\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T16:53:25.697Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ce35cea8-1b3f-492e-9808-ac075281d37a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-16T17:23:37.526Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"entered-in-error\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-16T17:23:37.526Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0db4be78-e826-45ea-8e78-2cad1cfbdb9b\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-17T17:27:03.712Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2024-12-17T17:27:03.712Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3b5c8a53-5af5-40be-b813-3230d2064f6b\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:44:46.099Z\"\\n },\\n \"status\": \"current\",\\n \"docStatus\": \"preliminary\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T10:44:46.099Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-692a1def-e06c-48a1-a63d-4e0eb42fa697\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:01:04.388Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-10T11:01:04.388Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7dea586e-a51f-42ba-a40b-54323981e1a5\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-16T15:18:20.521Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\\n },\\n \"identifier\": [\\n {\\n \"type\": {\\n \"text\": \"Accession-Number\"\\n },\\n \"value\": \"Y05868.123456789\"\\n }\\n ],\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"https://nicip.nhs.uk\",\\n \"code\": \"MAULR\",\\n \"display\": \"MRA Upper Limb Rt\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"721981007\",\\n \"display\": \"Diagnostic studies report\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9693892992\"\\n }\\n },\\n \"date\": \"2025-01-16T15:18:20.521Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nir-poc-mock-imaging-network.s3.eu-west-2.amazonaws.com/diagnosticreport-example-f201-brainct.json\",\\n \"creation\": \"2024-04-23T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2023-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'time': 1737628214.446, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-23 10:30:14,446+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '52223253-9acf-4768-8aae-1a952eeb11ab', 'correlation_id': 'dbef2cd7-9014-4e75-9d89-97cd71b81f7b.7fd2e4f8-9d18-45ca-a236-b39082d3e078.rrt-1546647340206649297-a-geu2-885686-36214680-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67921a36-ade67923b9a9380589d192af'}}, {'raw_message': 'END RequestId: 52223253-9acf-4768-8aae-1a952eeb11ab\\n'}, {'raw_message': 'REPORT RequestId: 52223253-9acf-4768-8aae-1a952eeb11ab\\tDuration: 50.69 ms\\tBilled Duration: 51 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\t\\nXRAY TraceId: 1-67921a36-ade67923b9a9380589d192af\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: b5ff02e9-6804-46ee-81d7-c587082f858c Version: $LATEST\\n'}, {'time': 1738082676.782, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-28 16:44:36,782+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'application/json;version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer IN5VeeZabKHM9TpZ32NPkNAQnwnh', 'content-type': 'application/json+fhir', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nrlf-test-veit\",\"developer.app.id\":\"e6b0cd69-258e-4d38-b3a4-667c1d2a6464\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.250.161\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"D82106\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559\"}', 'nhsd-correlation-id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'NHSD-End-User-Organisation-ODS': 'D82106', 'NHSD-Request-ID': 'a7116ae1-5373-41e0-b308-8c563253fee0', 'User-Agent': 'python-requests/2.32.3', 'x-correlation-id': '04e8b0a3-e926-4d94-b18f-32dad5299c50', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a7116ae1-5373-41e0-b308-8c563253fee0'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.782, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-28 16:44:36,782+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.783, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-28 16:44:36,783+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'headers': {'accept': 'application/json;version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer IN5VeeZabKHM9TpZ32NPkNAQnwnh', 'content-type': 'application/json+fhir', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nrlf-test-veit\",\"developer.app.id\":\"e6b0cd69-258e-4d38-b3a4-667c1d2a6464\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.250.161\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"D82106\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559\"}', 'nhsd-correlation-id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'NHSD-End-User-Organisation-ODS': 'D82106', 'NHSD-Request-ID': 'a7116ae1-5373-41e0-b308-8c563253fee0', 'User-Agent': 'python-requests/2.32.3', 'x-correlation-id': '04e8b0a3-e926-4d94-b18f-32dad5299c50', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': 'a7116ae1-5373-41e0-b308-8c563253fee0'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.783, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-28 16:44:36,783+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'metadata': {'pointer_types': [], 'ods_code': 'D82106', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nrlf-test-veit', 'developer_app_id': 'e6b0cd69-258e-4d38-b3a4-667c1d2a6464'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.783, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-28 16:44:36,783+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.784, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-28 16:44:36,784+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.784, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-28 16:44:36,784+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9694201489\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082676.784, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-28 16:44:36,784+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9694201489', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.261, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-28 16:44:37,261+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.261, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-28 16:44:37,261+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.261, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-28 16:44:37,261+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.261, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-28 16:44:37,261+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.262, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-28 16:44:37,262+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.262, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-28 16:44:37,262+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.262, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-28 16:44:37,262+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9694201489', ':type_0': 'http://snomed.info/sct|887701000000100', ':type_1': 'http://snomed.info/sct|736253002', ':type_2': 'http://snomed.info/sct|736373009', ':type_3': 'http://snomed.info/sct|861421000000109', ':type_4': 'http://snomed.info/sct|325691000000100', ':type_5': 'http://snomed.info/sct|1363501000000100', ':type_6': 'http://snomed.info/sct|16521000000101', ':type_7': 'http://snomed.info/sct|824321000000109', ':type_8': 'http://snomed.info/sct|2181441000000107'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.528, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-28 16:44:37,528+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'stats': {'count': 26, 'scanned_count': 28, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.529, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-28 16:44:37,529+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'result': {'Items': [{'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-2181441000000107', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-2181441000000107#CO#2024-10-01T11:16:07.866Z#D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\": \"DocumentReference\", \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\", \"meta\": {\"lastUpdated\": \"2024-10-01T11:16:07.866Z\"}, \"status\": \"current\", \"type\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"2181441000000107\", \"display\": \"Personalised Care and Support Plan\"}]}, \"category\": [{\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"734163000\", \"display\": \"Care plan\"}]}], \"subject\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhs-number\", \"value\": \"9694201489\"}}, \"date\": \"2024-10-01T11:16:05+00:00\", \"author\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}], \"custodian\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}, \"content\": [{\"attachment\": {\"contentType\": \"application/pdf\", \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:unstructured\", \"display\": \"Unstructured Document\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"dynamic\", \"display\": \"Dynamic\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}, {\"attachment\": {\"contentType\": \"text/html\", \"url\": \"https://www.google.com/\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:record-contact\", \"display\": \"Contact details (HTTP Unsecured)\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"static\", \"display\": \"Static\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}], \"context\": {\"period\": {\"start\": \"2022-02-28T12:04:38.3143068+00:00\", \"end\": \"2035-08-15T11:12:53Z\"}, \"practiceSetting\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"310167005\", \"display\": \"Urology service\"}]}, \"related\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\", \"value\": \"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|2181441000000107', 'created_on': '2024-10-01T11:16:07.866Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T11:55:34.953Z#D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'id': 'RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'pk': 'D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-cab62fc5-f194-497d-a390-cf79f57bf967\",\"meta\":{\"lastUpdated\":\"2024-12-19T11:55:34.953Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planPM\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T11:55:34.953Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-12-18T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T11:55:34.953Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:02:59.346Z#D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'id': 'RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'pk': 'D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-557c78bb-d45d-444e-b477-96332f86f38d\",\"meta\":{\"lastUpdated\":\"2024-12-19T14:02:59.346Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:02:59.346Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\" \",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:02:59.346Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': '2024-12-23T12:06:47.960Z', 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:13:10.436Z#D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'pk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449\",\"meta\":{\"lastUpdated\":\"2024-12-23T12:06:47.960Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:13:10.436Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-26T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:13:10.436Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:36:02.992Z#D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'id': 'RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'pk': 'D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905\",\"meta\":{\"lastUpdated\":\"2024-12-19T14:36:02.992Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:36:02.992Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"type\":\"DocumentReference\",\"identifier\":{\"value\":\"RQI-bfc00047-aa81-4d44-99c5-d0986df3c47c\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-15T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:36:02.992Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-20T09:07:26.275Z#D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-20T09:07:26.275Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-20T09:07:23+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-20T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-20T09:07:26.275Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-20T10:26:05.362Z#D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-20T10:26:05.362Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planJM\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-20T10:26:02+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-12-13T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-20T10:26:05.362Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T10:36:51.103Z#D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'id': 'RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'pk': 'D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5\",\"meta\":{\"lastUpdated\":\"2024-12-23T10:36:51.103Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T10:36:51.103Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\" \",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T10:36:51.103Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:29:49.822Z#D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'id': 'RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'pk': 'D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-85892bc8-ca57-4220-820e-2c0e30de9010\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:29:49.822Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:29:49.822Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-11-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:29:49.822Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:37:29.409Z#D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'id': 'RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'pk': 'D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fc13551d-fd04-43a5-a882-2f465a861f00\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:37:29.409Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:37:29.409Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:37:29.409Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:42:00.163Z#D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'id': 'RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'pk': 'D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:42:00.163Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:42:00.163Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-12-22T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:42:00.163Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T12:01:02.368Z#D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'id': 'RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'pk': 'D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-c7686130-bab9-42c1-9e46-db62c91a0315\",\"meta\":{\"lastUpdated\":\"2024-12-23T12:01:02.368Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T12:01:02.368Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"type\":\"DocumentReference\",\"identifier\":{\"value\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563448\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-24T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T12:01:02.368Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T13:36:39.307Z#D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-23T13:36:39.307Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T13:36:32+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-27T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T13:36:39.307Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T14:04:17.520Z#D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-23T14:04:17.520Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T14:04:15+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"identifier\":{\"value\":\"RQI-4ca0da3f-beea-11ef-b825-0224f2d65e7a-585a5436335a5a394257\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-28T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T14:04:17.520Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T14:20:27.892Z#D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'id': 'RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'pk': 'D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a\",\"meta\":{\"lastUpdated\":\"2024-12-23T14:20:27.892Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T14:20:27.892Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T14:20:27.892Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T12:10:44.258Z#D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'id': 'RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'pk': 'D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9\",\"meta\":{\"lastUpdated\":\"2025-01-03T12:10:44.258Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-03T12:10:44.258Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2025-01-03T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T12:10:44.258Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'X26', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#X26-test-doc-with-pdf-contact-details', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T12:10:44.258Z#D#X26-test-doc-with-pdf-contact-details', 'id': 'X26-test-doc-with-pdf-contact-details', 'pk': 'D#X26-test-doc-with-pdf-contact-details', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"X26-test-doc-with-pdf-contact-details\",\"meta\":{\"lastUpdated\":\"2025-01-03T12:10:44.258Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2020-05-12T18:43:16+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"X26\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RXA\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nrls.cwp.nhs.uk/1234.pdf\",\"creation\":\"2010-11-30T12:00:00+00:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2020-05-12T18:43:16+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"708168004\",\"display\":\"Mental health service\"}]}}}', 'custodian': 'RXA', 'author': 'X26', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T12:10:44.258Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RJ11', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T14:48:17.913Z#D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'id': 'RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'pk': 'D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452\",\"meta\":{\"lastUpdated\":\"2025-01-03T14:48:17.913Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-03T14:48:17.913Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RJ11\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RJ11', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T14:48:17.913Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-07T16:18:58.045Z#D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'id': 'RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'pk': 'D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590\",\"meta\":{\"lastUpdated\":\"2025-01-07T16:18:58.045Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-07T16:18:58.045Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-07T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-07T16:18:58.045Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-08T11:38:26.612Z#D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-08T11:38:26.612Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-08T11:38:20+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-08T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-08T11:38:26.612Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-09T10:52:37.515Z#D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-09T10:52:37.515Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-09T10:52:34+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-12-27T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-09T10:52:37.515Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T10:28:52.528Z#D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'id': 'RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'pk': 'D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0ba107a1-b719-47e2-97ea-3da1970d4500\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:28:52.528Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T10:28:52.528Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-10T10:26:00+00:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T10:28:52.528Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T11:25:09.969Z#D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:25:09.969Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T11:25:09+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-08T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T11:25:09.969Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T13:26:40.445Z#D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'id': 'RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'pk': 'D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c\",\"meta\":{\"lastUpdated\":\"2025-01-10T13:26:40.445Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T13:26:40.445Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2025-01-06T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T13:26:40.445Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-23T14:21:40.977Z#D#RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-23T14:21:40.977Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-23T14:21:38+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-12-13T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-23T14:21:40.977Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-28T16:43:21.673Z#D#RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-28T16:43:21.673Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-28T16:43:18+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-28T16:43:21.673Z'}], 'Count': 26, 'ScannedCount': 28, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 9.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 9.0}}}, 'ResponseMetadata': {'RequestId': 'DVGN15013GO3O4TQHP9SD212VBVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Tue, 28 Jan 2025 16:44:37 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '78664', 'connection': 'keep-alive', 'x-amzn-requestid': 'DVGN15013GO3O4TQHP9SD212VBVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '889434030'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.538, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,538+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.538, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,538+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.539, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,539+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.539, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,539+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.54, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,540+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.54, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,540+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.54, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,540+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'cab62fc5-f194-497d-a390-cf79f57bf967', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.54, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,540+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.54, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,540+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '557c78bb-d45d-444e-b477-96332f86f38d', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.541, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,541+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.542, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,542+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,559+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,559+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,559+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'e9e2f6be-d149-4f0e-80b1-b880713e7905', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,559+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.559, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,559+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'd367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.56, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,560+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'd017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '3079125e-fc2e-4174-a388-cccf27fcc3d5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.561, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,561+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.562, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,562+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.562, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,562+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.562, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,562+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '85892bc8-ca57-4220-820e-2c0e30de9010', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.562, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,562+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.562, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,562+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.562, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,562+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'count': 9, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'fc13551d-fd04-43a5-a882-2f465a861f00', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'count': 10, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.563, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,563+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'count': 11, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'c7686130-bab9-42c1-9e46-db62c91a0315', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.564, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,564+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.565, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,565+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'count': 12, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.565, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,565+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.565, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,565+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.565, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,565+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.565, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,565+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.565, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,565+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 13, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.566, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,566+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.566, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,566+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.566, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,566+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.566, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,566+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.578, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,578+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 14, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.578, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,578+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'count': 15, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.579, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,579+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'count': 16, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'X26', 'document_id': 'test-doc-with-pdf-contact-details', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.58, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,580+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RXA', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'X26-test-doc-with-pdf-contact-details', 'count': 17, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RJ11', 'document_id': '7e9587a3-2ce6-40e0-8737-afd6c6770452', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RJ11', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'count': 18, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.581, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,581+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,582+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,582+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.582, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,582+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.598, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,598+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'count': 19, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 20, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.599, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,599+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'd54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 21, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '0ba107a1-b719-47e2-97ea-3da1970d4500', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.6, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,600+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'count': 22, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.601, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,601+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 23, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.602, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,602+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.619, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,619+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'count': 24, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.619, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,619+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.619, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,619+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': '5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.619, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,619+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.619, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,619+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.619, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,619+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 25, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.62, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:44:37,620+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.62, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:44:37,620+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'producer_id': 'RQI', 'document_id': 'fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.62, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:44:37,620+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.62, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:44:37,620+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.62, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:44:37,620+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'id': 'RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 26, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.625, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-28 16:44:37,625+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.625, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-28 16:44:37,625+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 26,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9694201489\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-10-01T11:16:07.866Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"2181441000000107\",\\n \"display\": \"Personalised Care and Support Plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-10-01T11:16:05+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-cab62fc5-f194-497d-a390-cf79f57bf967\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T11:55:34.953Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planPM\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T11:55:34.953Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-18T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-557c78bb-d45d-444e-b477-96332f86f38d\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T14:02:59.346Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:02:59.346Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \" \",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T12:06:47.960Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:13:10.436Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-26T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T14:36:02.992Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:36:02.992Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"type\": \"DocumentReference\",\\n \"identifier\": {\\n \"value\": \"RQI-bfc00047-aa81-4d44-99c5-d0986df3c47c\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-15T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-20T09:07:26.275Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-20T09:07:23+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-20T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-20T10:26:05.362Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planJM\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-20T10:26:02+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-12-13T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T10:36:51.103Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T10:36:51.103Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \" \",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-85892bc8-ca57-4220-820e-2c0e30de9010\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:29:49.822Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:29:49.822Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-11-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fc13551d-fd04-43a5-a882-2f465a861f00\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:37:29.409Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:37:29.409Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:42:00.163Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:42:00.163Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-22T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-c7686130-bab9-42c1-9e46-db62c91a0315\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T12:01:02.368Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T12:01:02.368Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"type\": \"DocumentReference\",\\n \"identifier\": {\\n \"value\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563448\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-24T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T13:36:39.307Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T13:36:32+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-27T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T14:04:17.520Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T14:04:15+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"identifier\": {\\n \"value\": \"RQI-4ca0da3f-beea-11ef-b825-0224f2d65e7a-585a5436335a5a394257\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-28T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T14:20:27.892Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T14:20:27.892Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T12:10:44.258Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-03T12:10:44.258Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2025-01-03T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"X26-test-doc-with-pdf-contact-details\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T12:10:44.258Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2020-05-12T18:43:16+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"X26\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RXA\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nrls.cwp.nhs.uk/1234.pdf\",\\n \"creation\": \"2010-11-30T12:00:00+00:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2020-05-12T18:43:16+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"708168004\",\\n \"display\": \"Mental health service\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T14:48:17.913Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-03T14:48:17.913Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RJ11\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-07T16:18:58.045Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-07T16:18:58.045Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-07T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-08T11:38:26.612Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-08T11:38:20+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-08T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-09T10:52:37.515Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-09T10:52:34+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-12-27T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0ba107a1-b719-47e2-97ea-3da1970d4500\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:28:52.528Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T10:28:52.528Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-10T10:26:00+00:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:25:09.969Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T11:25:09+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-08T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T13:26:40.445Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T13:26:40.445Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2025-01-06T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-23T14:21:40.977Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-23T14:21:38+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-12-13T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-28T16:43:21.673Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-28T16:43:18+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'time': 1738082677.638, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-28 16:44:37,638+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'b5ff02e9-6804-46ee-81d7-c587082f858c', 'correlation_id': 'a7116ae1-5373-41e0-b308-8c563253fee0.04e8b0a3-e926-4d94-b18f-32dad5299c50.rrt-5789119621759911785-b-geu2-3483542-7733076-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-67990973-d5cdcce7f18b721a1849aaa0'}}, {'raw_message': 'END RequestId: b5ff02e9-6804-46ee-81d7-c587082f858c\\n'}, {'raw_message': 'REPORT RequestId: b5ff02e9-6804-46ee-81d7-c587082f858c\\tDuration: 880.32 ms\\tBilled Duration: 881 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\tInit Duration: 1291.72 ms\\t\\nXRAY TraceId: 1-67990973-d5cdcce7f18b721a1849aaa0\\tSampled: true\\t\\n'}, {'raw_message': 'START RequestId: 437e06a8-55db-42f9-9579-93708cdc933f Version: $LATEST\\n'}, {'time': 1738082721.375, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-28 16:45:21,375+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'application/json;version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer IN5VeeZabKHM9TpZ32NPkNAQnwnh', 'content-type': 'application/json+fhir', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nrlf-test-veit\",\"developer.app.id\":\"e6b0cd69-258e-4d38-b3a4-667c1d2a6464\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.250.161\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"D82106\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559\"}', 'nhsd-correlation-id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'NHSD-End-User-Organisation-ODS': 'D82106', 'NHSD-Request-ID': '086e99cc-1feb-4e44-9bfd-8bf91e477da4', 'User-Agent': 'python-requests/2.32.3', 'x-correlation-id': '91b6ad9d-4560-4b83-81b9-9d4f1498529c', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.376, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-28 16:45:21,376+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.376, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-28 16:45:21,376+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'headers': {'accept': 'application/json;version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer IN5VeeZabKHM9TpZ32NPkNAQnwnh', 'content-type': 'application/json+fhir', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nrlf-test-veit\",\"developer.app.id\":\"e6b0cd69-258e-4d38-b3a4-667c1d2a6464\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.250.161\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"D82106\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559\"}', 'nhsd-correlation-id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'NHSD-End-User-Organisation-ODS': 'D82106', 'NHSD-Request-ID': '086e99cc-1feb-4e44-9bfd-8bf91e477da4', 'User-Agent': 'python-requests/2.32.3', 'x-correlation-id': '91b6ad9d-4560-4b83-81b9-9d4f1498529c', 'X-Forwarded-For': '35.246.55.143', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.376, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-28 16:45:21,376+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'metadata': {'pointer_types': [], 'ods_code': 'D82106', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nrlf-test-veit', 'developer_app_id': 'e6b0cd69-258e-4d38-b3a4-667c1d2a6464'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.376, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-28 16:45:21,376+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9694201489\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9694201489', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.377, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-28 16:45:21,377+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.378, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-28 16:45:21,378+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.378, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-28 16:45:21,378+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'nhs_number': '9694201489', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.378, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-28 16:45:21,378+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9694201489', ':type_0': 'http://snomed.info/sct|887701000000100', ':type_1': 'http://snomed.info/sct|736253002', ':type_2': 'http://snomed.info/sct|736373009', ':type_3': 'http://snomed.info/sct|861421000000109', ':type_4': 'http://snomed.info/sct|325691000000100', ':type_5': 'http://snomed.info/sct|1363501000000100', ':type_6': 'http://snomed.info/sct|16521000000101', ':type_7': 'http://snomed.info/sct|824321000000109', ':type_8': 'http://snomed.info/sct|2181441000000107'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.405, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-28 16:45:21,405+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'stats': {'count': 26, 'scanned_count': 28, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.405, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-28 16:45:21,405+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'result': {'Items': [{'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-2181441000000107', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-2181441000000107#CO#2024-10-01T11:16:07.866Z#D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\": \"DocumentReference\", \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\", \"meta\": {\"lastUpdated\": \"2024-10-01T11:16:07.866Z\"}, \"status\": \"current\", \"type\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"2181441000000107\", \"display\": \"Personalised Care and Support Plan\"}]}, \"category\": [{\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"734163000\", \"display\": \"Care plan\"}]}], \"subject\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhs-number\", \"value\": \"9694201489\"}}, \"date\": \"2024-10-01T11:16:05+00:00\", \"author\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}], \"custodian\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}, \"content\": [{\"attachment\": {\"contentType\": \"application/pdf\", \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:unstructured\", \"display\": \"Unstructured Document\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"dynamic\", \"display\": \"Dynamic\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}, {\"attachment\": {\"contentType\": \"text/html\", \"url\": \"https://www.google.com/\", \"creation\": \"2024-10-01T12:16:05+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:record-contact\", \"display\": \"Contact details (HTTP Unsecured)\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"static\", \"display\": \"Static\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}], \"context\": {\"period\": {\"start\": \"2022-02-28T12:04:38.3143068+00:00\", \"end\": \"2035-08-15T11:12:53Z\"}, \"practiceSetting\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"310167005\", \"display\": \"Urology service\"}]}, \"related\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\", \"value\": \"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|2181441000000107', 'created_on': '2024-10-01T11:16:07.866Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T11:55:34.953Z#D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'id': 'RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'pk': 'D#RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-cab62fc5-f194-497d-a390-cf79f57bf967\",\"meta\":{\"lastUpdated\":\"2024-12-19T11:55:34.953Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planPM\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T11:55:34.953Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-12-18T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T11:55:34.953Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:02:59.346Z#D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'id': 'RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'pk': 'D#RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-557c78bb-d45d-444e-b477-96332f86f38d\",\"meta\":{\"lastUpdated\":\"2024-12-19T14:02:59.346Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:02:59.346Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\" \",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:02:59.346Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': '2024-12-23T12:06:47.960Z', 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:13:10.436Z#D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'pk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449\",\"meta\":{\"lastUpdated\":\"2024-12-23T12:06:47.960Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:13:10.436Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-26T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:13:10.436Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-19T14:36:02.992Z#D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'id': 'RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'pk': 'D#RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905\",\"meta\":{\"lastUpdated\":\"2024-12-19T14:36:02.992Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-19T14:36:02.992Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"type\":\"DocumentReference\",\"identifier\":{\"value\":\"RQI-bfc00047-aa81-4d44-99c5-d0986df3c47c\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-15T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-19T14:36:02.992Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-20T09:07:26.275Z#D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-20T09:07:26.275Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-20T09:07:23+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-20T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-20T09:07:26.275Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-20T10:26:05.362Z#D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-20T10:26:05.362Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planJM\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-20T10:26:02+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-12-13T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-20T10:26:05.362Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T10:36:51.103Z#D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'id': 'RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'pk': 'D#RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5\",\"meta\":{\"lastUpdated\":\"2024-12-23T10:36:51.103Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T10:36:51.103Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\" \",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T10:36:51.103Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:29:49.822Z#D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'id': 'RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'pk': 'D#RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-85892bc8-ca57-4220-820e-2c0e30de9010\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:29:49.822Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:29:49.822Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-11-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:29:49.822Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:37:29.409Z#D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'id': 'RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'pk': 'D#RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fc13551d-fd04-43a5-a882-2f465a861f00\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:37:29.409Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:37:29.409Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-19T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:37:29.409Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T11:42:00.163Z#D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'id': 'RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'pk': 'D#RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a\",\"meta\":{\"lastUpdated\":\"2024-12-23T11:42:00.163Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T11:42:00.163Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-12-22T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T11:42:00.163Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T12:01:02.368Z#D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'id': 'RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'pk': 'D#RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-c7686130-bab9-42c1-9e46-db62c91a0315\",\"meta\":{\"lastUpdated\":\"2024-12-23T12:01:02.368Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T12:01:02.368Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"type\":\"DocumentReference\",\"identifier\":{\"value\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563448\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-24T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T12:01:02.368Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T13:36:39.307Z#D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-23T13:36:39.307Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T13:36:32+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-27T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T13:36:39.307Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T14:04:17.520Z#D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2024-12-23T14:04:17.520Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T14:04:15+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"relatesTo\":[{\"code\":\"replaces\",\"target\":{\"identifier\":{\"value\":\"RQI-4ca0da3f-beea-11ef-b825-0224f2d65e7a-585a5436335a5a394257\"}}}],\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-12-28T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T14:04:17.520Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-12-23T14:20:27.892Z#D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'id': 'RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'pk': 'D#RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a\",\"meta\":{\"lastUpdated\":\"2024-12-23T14:20:27.892Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2024-12-23T14:20:27.892Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-12-23T14:20:27.892Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T12:10:44.258Z#D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'id': 'RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'pk': 'D#RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9\",\"meta\":{\"lastUpdated\":\"2025-01-03T12:10:44.258Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-03T12:10:44.258Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2025-01-03T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T12:10:44.258Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'X26', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#X26-test-doc-with-pdf-contact-details', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T12:10:44.258Z#D#X26-test-doc-with-pdf-contact-details', 'id': 'X26-test-doc-with-pdf-contact-details', 'pk': 'D#X26-test-doc-with-pdf-contact-details', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"X26-test-doc-with-pdf-contact-details\",\"meta\":{\"lastUpdated\":\"2025-01-03T12:10:44.258Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2020-05-12T18:43:16+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"X26\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RXA\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"https://nrls.cwp.nhs.uk/1234.pdf\",\"creation\":\"2010-11-30T12:00:00+00:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2020-05-12T18:43:16+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"708168004\",\"display\":\"Mental health service\"}]}}}', 'custodian': 'RXA', 'author': 'X26', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T12:10:44.258Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RJ11', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T14:48:17.913Z#D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'id': 'RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'pk': 'D#RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452\",\"meta\":{\"lastUpdated\":\"2025-01-03T14:48:17.913Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-03T14:48:17.913Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RJ11\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RJ11', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T14:48:17.913Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-07T16:18:58.045Z#D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'id': 'RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'pk': 'D#RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590\",\"meta\":{\"lastUpdated\":\"2025-01-07T16:18:58.045Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-07T16:18:58.045Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-07T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-07T16:18:58.045Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-08T11:38:26.612Z#D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-08T11:38:26.612Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-08T11:38:20+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-08T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-08T11:38:26.612Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-09T10:52:37.515Z#D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-09T10:52:37.515Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-09T10:52:34+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-12-27T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-09T10:52:37.515Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T10:28:52.528Z#D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'id': 'RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'pk': 'D#RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-0ba107a1-b719-47e2-97ea-3da1970d4500\",\"meta\":{\"lastUpdated\":\"2025-01-10T10:28:52.528Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T10:28:52.528Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-10T10:26:00+00:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"size\":1000,\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T10:28:52.528Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T11:25:09.969Z#D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-10T11:25:09.969Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T11:25:09+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2025-01-08T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"dynamic\",\"display\":\"Dynamic\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-10-18T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T11:25:09.969Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-10T13:26:40.445Z#D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'id': 'RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'pk': 'D#RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c\",\"meta\":{\"lastUpdated\":\"2025-01-10T13:26:40.445Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-10T13:26:40.445Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2025-01-06T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-10T13:26:40.445Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-23T14:21:40.977Z#D#RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-23T14:21:40.977Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-23T14:21:38+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\",\"creation\":\"2024-12-13T12:07:40+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-23T14:21:40.977Z'}, {'nhs_number': '9694201489', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096', 'updated_on': None, 'patient_key': 'P#9694201489', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-28T16:43:21.673Z#D#RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'id': 'RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'pk': 'D#RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\"meta\":{\"lastUpdated\":\"2025-01-28T16:43:21.673Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis planA\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694201489\"}},\"date\":\"2025-01-28T16:43:18+00:00\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RAE\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com/\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"id\":\"ZZZZ\",\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2022-02-28T12:04:38.3143068+00:00\",\"end\":\"2035-08-15T11:12:53Z\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"310167005\",\"display\":\"Urology service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-28T16:43:21.673Z'}], 'Count': 26, 'ScannedCount': 28, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 9.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 9.0}}}, 'ResponseMetadata': {'RequestId': 'R6SCEHGI69VQOPAEF21BLUEBGJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Tue, 28 Jan 2025 16:45:21 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '78665', 'connection': 'keep-alive', 'x-amzn-requestid': 'R6SCEHGI69VQOPAEF21BLUEBGJVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '2456333561'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.418, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,418+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.418, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,418+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.419, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,419+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.419, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,419+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.419, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,419+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.419, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,419+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.419, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,419+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'cab62fc5-f194-497d-a390-cf79f57bf967', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.419, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,419+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.42, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,420+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.42, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,420+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-cab62fc5-f194-497d-a390-cf79f57bf967', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.42, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,420+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.42, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,420+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '557c78bb-d45d-444e-b477-96332f86f38d', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.42, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,420+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.42, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,420+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-557c78bb-d45d-444e-b477-96332f86f38d', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.421, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,421+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'e9e2f6be-d149-4f0e-80b1-b880713e7905', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'd367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.422, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,422+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.423, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,423+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.423, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,423+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.423, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,423+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.423, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,423+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'd017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.423, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,423+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.423, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,423+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '3079125e-fc2e-4174-a388-cccf27fcc3d5', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.424, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,424+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '85892bc8-ca57-4220-820e-2c0e30de9010', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-85892bc8-ca57-4220-820e-2c0e30de9010', 'count': 9, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'fc13551d-fd04-43a5-a882-2f465a861f00', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.425, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,425+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-fc13551d-fd04-43a5-a882-2f465a861f00', 'count': 10, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.426, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,426+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a', 'count': 11, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'c7686130-bab9-42c1-9e46-db62c91a0315', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.439, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,439+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-c7686130-bab9-42c1-9e46-db62c91a0315', 'count': 12, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 13, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.44, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,440+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 14, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.441, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,441+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.442, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,442+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a', 'count': 15, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.442, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,442+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.442, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,442+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.458, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,458+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.458, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,458+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,459+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9', 'count': 16, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,459+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,459+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'X26', 'document_id': 'test-doc-with-pdf-contact-details', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,459+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.459, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,459+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RXA', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,460+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'X26-test-doc-with-pdf-contact-details', 'count': 17, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,460+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,460+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RJ11', 'document_id': '7e9587a3-2ce6-40e0-8737-afd6c6770452', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,460+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,460+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RJ11', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.46, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,460+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452', 'count': 18, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.461, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,461+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.461, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,461+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.461, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,461+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.461, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,461+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.461, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,461+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590', 'count': 19, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.461, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,461+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.462, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,462+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.462, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,462+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.462, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,462+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.478, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,478+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 20, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.478, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,478+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,479+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'd54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,479+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,479+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,479+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 21, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,479+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,479+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '0ba107a1-b719-47e2-97ea-3da1970d4500', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-0ba107a1-b719-47e2-97ea-3da1970d4500', 'count': 22, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,480+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.481, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,481+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 23, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.481, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,481+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.481, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,481+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.481, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,481+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.481, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,481+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.481, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,481+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c', 'count': 24, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': '5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 25, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.482, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-28 16:45:21,482+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'producer_id': 'RQI', 'document_id': 'fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.483, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-28 16:45:21,483+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.483, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-28 16:45:21,483+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.483, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-28 16:45:21,483+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'id': 'RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257', 'count': 26, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-28 16:45:21,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.499, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-28 16:45:21,499+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 26,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9694201489\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8d01e1b1-7fe6-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-10-01T11:16:07.866Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"2181441000000107\",\\n \"display\": \"Personalised Care and Support Plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-10-01T11:16:05+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-01T12:16:05+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-cab62fc5-f194-497d-a390-cf79f57bf967\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T11:55:34.953Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planPM\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T11:55:34.953Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-18T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-557c78bb-d45d-444e-b477-96332f86f38d\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T14:02:59.346Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:02:59.346Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \" \",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563449\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T12:06:47.960Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:13:10.436Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-26T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-e9e2f6be-d149-4f0e-80b1-b880713e7905\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-19T14:36:02.992Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-19T14:36:02.992Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"type\": \"DocumentReference\",\\n \"identifier\": {\\n \"value\": \"RQI-bfc00047-aa81-4d44-99c5-d0986df3c47c\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-15T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d367c305-beb1-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-20T09:07:26.275Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-20T09:07:23+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-20T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d017a18d-bebc-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-20T10:26:05.362Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad001\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planJM\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-20T10:26:02+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-12-13T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-3079125e-fc2e-4174-a388-cccf27fcc3d5\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T10:36:51.103Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T10:36:51.103Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \" \",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-85892bc8-ca57-4220-820e-2c0e30de9010\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:29:49.822Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:29:49.822Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-11-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fc13551d-fd04-43a5-a882-2f465a861f00\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:37:29.409Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:37:29.409Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-19T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-1dee7480-36ee-4cca-8ca3-858a549b3b5a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T11:42:00.163Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T11:42:00.163Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-22T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-c7686130-bab9-42c1-9e46-db62c91a0315\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T12:01:02.368Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T12:01:02.368Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"type\": \"DocumentReference\",\\n \"identifier\": {\\n \"value\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563448\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-24T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ebd7c69b-c132-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T13:36:39.307Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad006\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T13:36:32+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-27T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-cb2e2b89-c136-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T14:04:17.520Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad008\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T14:04:15+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"relatesTo\": [\\n {\\n \"code\": \"replaces\",\\n \"target\": {\\n \"identifier\": {\\n \"value\": \"RQI-4ca0da3f-beea-11ef-b825-0224f2d65e7a-585a5436335a5a394257\"\\n }\\n }\\n }\\n ],\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-12-28T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-f0826871-c9ef-49f1-8a8a-0b29e082c14a\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-12-23T14:20:27.892Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2024-12-23T14:20:27.892Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-82227d5e-feb4-4a86-ab3d-9b6db8f7aef9\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T12:10:44.258Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-03T12:10:44.258Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2025-01-03T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"X26-test-doc-with-pdf-contact-details\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T12:10:44.258Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2020-05-12T18:43:16+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"X26\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RXA\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"https://nrls.cwp.nhs.uk/1234.pdf\",\\n \"creation\": \"2010-11-30T12:00:00+00:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2020-05-12T18:43:16+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"708168004\",\\n \"display\": \"Mental health service\"\\n }\\n ]\\n }\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RJ11-7e9587a3-2ce6-40e0-8737-afd6c6770452\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T14:48:17.913Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-03T14:48:17.913Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RJ11\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-ba4955d1-bec9-43d7-8dfb-76ae3eccd590\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-07T16:18:58.045Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-07T16:18:58.045Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-07T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0f5b4627-cdb5-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-08T11:38:26.612Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-08T11:38:20+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-08T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-d54fd943-ce77-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-09T10:52:37.515Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-09T10:52:34+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-12-27T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-0ba107a1-b719-47e2-97ea-3da1970d4500\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T10:28:52.528Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T10:28:52.528Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-10T10:26:00+00:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"size\": 1000,\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8cff3651-cf45-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T11:25:09.969Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T11:25:09+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2025-01-08T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-10-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fee7cbb3-90e0-43f0-ac04-12dc5584967c\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-10T13:26:40.445Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-10T13:26:40.445Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2025-01-06T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-5b836e49-d995-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-23T14:21:40.977Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad003\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-23T14:21:38+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-12-13T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-fa6c0ac5-dd96-11ef-b825-0224f2d65e7a-585a5436335a5a394257\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-28T16:43:21.673Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad096\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis planA\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694201489\"\\n }\\n },\\n \"date\": \"2025-01-28T16:43:18+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'time': 1738082721.5, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-28 16:45:21,500+0000', 'service': 'service_undefined', 'cold_start': False, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': '437e06a8-55db-42f9-9579-93708cdc933f', 'correlation_id': '086e99cc-1feb-4e44-9bfd-8bf91e477da4.91b6ad9d-4560-4b83-81b9-9d4f1498529c.rrt-5192643415628698414-a-geu2-3810887-47584119-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-679909a1-53d58bb80ee712abef7aadfd'}}, {'raw_message': 'END RequestId: 437e06a8-55db-42f9-9579-93708cdc933f\\n'}, {'raw_message': 'REPORT RequestId: 437e06a8-55db-42f9-9579-93708cdc933f\\tDuration: 147.65 ms\\tBilled Duration: 148 ms\\tMemory Size: 512 MB\\tMax Memory Used: 133 MB\\t\\nXRAY TraceId: 1-679909a1-53d58bb80ee712abef7aadfd\\tSampled: true\\t\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'INIT_START Runtime Version: python:3.12.v38\\tRuntime Version ARN: arn:aws:lambda:eu-west-2::runtime:7515e00d6763496e7a147ffa395ef5b0f0c1ffd6064130abb5ecde5a6d630e86\\n'}, {'raw_message': 'START RequestId: e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2 Version: $LATEST\\n'}, {'time': 1738313291.982, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:243', 'message': 'Starting execution of request handler', 'timestamp': '2025-01-31 08:48:11,982+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'method': 'POST', 'path': '/consumer/DocumentReference/_search', 'headers': {'accept': 'application/json;version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer l4XPljZ8o6uTzEA7FiU53SbUn57z', 'content-type': 'application/json+fhir', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nrlf-test-veit\",\"developer.app.id\":\"e6b0cd69-258e-4d38-b3a4-667c1d2a6464\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.250.161\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"D82106\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559\"}', 'nhsd-correlation-id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'NHSD-End-User-Organisation-ODS': 'D82106', 'NHSD-Request-ID': '4e90da85-06f8-41c8-a437-42a549ee0980', 'User-Agent': 'python-requests/2.32.3', 'x-correlation-id': 'a6c4edfa-9288-4bd3-8ce0-3154154b8393', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '4e90da85-06f8-41c8-a437-42a549ee0980'}, 'log_reference': 'HANDLER000', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.983, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'wrapper:256', 'message': 'Loaded config from environment variables', 'timestamp': '2025-01-31 08:48:11,983+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'config': {'AWS_REGION': 'eu-west-2', 'PREFIX': 'nhsd-nrlf--dev-1--', 'ENVIRONMENT': 'dev', 'SPLUNK_INDEX': 'aws_recordlocator_dev', 'SOURCE': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'AUTH_STORE': 'nhsd-nrlf--dev-authorization-store', 'TABLE_NAME': 'nhsd-nrlf--dev-pointers-table'}, 'log_reference': 'HANDLER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.983, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'load_connection_metadata:141', 'message': 'Attempting to parse request headers', 'timestamp': '2025-01-31 08:48:11,983+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'headers': {'accept': 'application/json;version=1.0', 'accept-encoding': 'gzip, deflate', 'Authorization': 'Bearer l4XPljZ8o6uTzEA7FiU53SbUn57z', 'content-type': 'application/json+fhir', 'Host': 'dev.api.record-locator.dev.national.nhs.uk', 'NHSD-Client-RP-Details': '{\"developer.app.name\":\"nrlf-test-veit\",\"developer.app.id\":\"e6b0cd69-258e-4d38-b3a4-667c1d2a6464\",\"developer.app.nhs-login-minimum-proofing-level\":null,\"client.ip\":\"18.170.250.161\"}', 'NHSD-Connection-Metadata': '{\"nrl.ods-code\":\"D82106\",\"nrl.ods-code-extension\":null,\"nrl.app-id\":\"X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559\"}', 'nhsd-correlation-id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'NHSD-End-User-Organisation-ODS': 'D82106', 'NHSD-Request-ID': '4e90da85-06f8-41c8-a437-42a549ee0980', 'User-Agent': 'python-requests/2.32.3', 'x-correlation-id': 'a6c4edfa-9288-4bd3-8ce0-3154154b8393', 'X-Forwarded-For': '35.197.254.55', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-request-id': '4e90da85-06f8-41c8-a437-42a549ee0980'}, 'log_reference': 'HANDLER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.983, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:143', 'message': 'Parsed metadata from request headers', 'timestamp': '2025-01-31 08:48:11,983+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'metadata': {'pointer_types': [], 'ods_code': 'D82106', 'ods_code_extension': None, 'nrl_permissions': [], 'nrl_app_id': 'X26-NRL-NCRS-Dev-dfaaea2d-ea77-4bdf-aba9-0a1847840559', 'is_test_event': False, 'client_rp_details': {'developer_app_name': 'nrlf-test-veit', 'developer_app_id': 'e6b0cd69-258e-4d38-b3a4-667c1d2a6464'}}, 'log_reference': 'HANDLER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.984, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:149', 'message': 'Parsing embedded permissions file from S3', 'timestamp': '2025-01-31 08:48:11,984+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'HANDLER004b', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.985, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'load_connection_metadata:156', 'message': 'Parsed embedded permissions file from S3', 'timestamp': '2025-01-31 08:48:11,985+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'HANDLER004c', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.985, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'parse_body:78', 'message': 'Attempting to parse request body', 'timestamp': '2025-01-31 08:48:11,985+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'body': '{\"subject:identifier\": \"https://fhir.nhs.uk/Id/nhs-number|9694200822\"}', 'model': 'ConsumerRequestParams', 'log_reference': 'HANDLER008', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313291.985, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'parse_body:91', 'message': 'Parsed request body', 'timestamp': '2025-01-31 08:48:11,985+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'parsed_body': {'subject_identifier': 'https://fhir.nhs.uk/Id/nhs-number|9694200822', 'custodian_identifier': None, 'type': None, 'category': None, 'next_page_token': None}, 'log_reference': 'HANDLER009', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '__init__:43', 'message': 'Initialised DynamoDB repository', 'timestamp': '2025-01-31 08:48:12,479+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'table_name': 'nhsd-nrlf--dev-pointers-table', 'item_type': 'DocumentPointer', 'log_reference': 'REPOSITORY001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'filter_kwargs:168', 'message': 'Filtered request handler function arguments', 'timestamp': '2025-01-31 08:48:12,479+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'original_kwargs_keys': \"dict_keys(['event', 'context', 'config', 'metadata', 'params', 'body', 'path', 'repository'])\", 'filtered_kwargs_keys': \"dict_keys(['body', 'metadata', 'repository'])\", 'log_reference': 'HANDLER012', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:288', 'message': 'Calling lambda-specific request handler', 'timestamp': '2025-01-31 08:48:12,479+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'HANDLER013', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.479, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:38', 'message': 'Starting to process consumer searchPostDocumentReference', 'timestamp': '2025-01-31 08:48:12,479+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'CONPOSTSEARCH000', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:98', 'message': 'Performing search by NHS number', 'timestamp': '2025-01-31 08:48:12,480+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'nhs_number': '9694200822', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'CONSEARCH003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'search:224', 'message': 'Searching items in DynamoDB with criteria', 'timestamp': '2025-01-31 08:48:12,480+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'nhs_number': '9694200822', 'pointer_types': ['http://snomed.info/sct|887701000000100', 'http://snomed.info/sct|736253002', 'http://snomed.info/sct|736373009', 'http://snomed.info/sct|861421000000109', 'http://snomed.info/sct|325691000000100', 'http://snomed.info/sct|1363501000000100', 'http://snomed.info/sct|16521000000101', 'http://snomed.info/sct|824321000000109', 'http://snomed.info/sct|2181441000000107'], 'log_reference': 'REPOSITORY020', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.48, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:383', 'message': 'Performing DynamoDB query', 'timestamp': '2025-01-31 08:48:12,480+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'query': {'IndexName': 'patient_gsi', 'KeyConditionExpression': 'patient_key = :patient_key', 'ExpressionAttributeValues': {':patient_key': 'P#9694200822', ':type_0': 'http://snomed.info/sct|887701000000100', ':type_1': 'http://snomed.info/sct|736253002', ':type_2': 'http://snomed.info/sct|736373009', ':type_3': 'http://snomed.info/sct|861421000000109', ':type_4': 'http://snomed.info/sct|325691000000100', ':type_5': 'http://snomed.info/sct|1363501000000100', ':type_6': 'http://snomed.info/sct|16521000000101', ':type_7': 'http://snomed.info/sct|824321000000109', ':type_8': 'http://snomed.info/sct|2181441000000107'}, 'ReturnConsumedCapacity': 'INDEXES', 'FilterExpression': '(#pointer_type = :type_0 OR #pointer_type = :type_1 OR #pointer_type = :type_2 OR #pointer_type = :type_3 OR #pointer_type = :type_4 OR #pointer_type = :type_5 OR #pointer_type = :type_6 OR #pointer_type = :type_7 OR #pointer_type = :type_8)', 'ExpressionAttributeNames': {'#pointer_type': 'type'}}, 'table': 'nhsd-nrlf--dev-pointers-table', 'log_reference': 'REPOSITORY021', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.746, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': '_query:390', 'message': 'Received page of search results', 'timestamp': '2025-01-31 08:48:12,746+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'stats': {'count': 12, 'scanned_count': 12, 'last_evaluated_key': None}, 'log_reference': 'REPOSITORY028', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.747, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': '_query:398', 'message': 'Received page of search results with result', 'timestamp': '2025-01-31 08:48:12,747+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'result': {'Items': [{'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2024-09-11T12:08:24.533Z#D#RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d', 'id': 'RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d', 'pk': 'D#RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d', 'document': '{\"resourceType\": \"DocumentReference\", \"id\": \"RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d\", \"meta\": {\"lastUpdated\": \"2024-09-11T12:08:24.533Z\"}, \"masterIdentifier\": {\"system\": \"urn:ietf:rfc:3986\", \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"}, \"status\": \"current\", \"type\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"736253002\", \"display\": \"Mental health crisis plan\"}]}, \"category\": [{\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"734163000\", \"display\": \"Care plan\"}]}], \"subject\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhs-number\", \"value\": \"9694200822\"}}, \"date\": \"2024-09-11T12:08:22+00:00\", \"author\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RAE\"}}], \"custodian\": {\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\", \"value\": \"RQI\"}}, \"content\": [{\"attachment\": {\"contentType\": \"application/pdf\", \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\", \"size\": 1000, \"creation\": \"2024-07-28T12:07:40+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:unstructured\", \"display\": \"Unstructured Document\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"dynamic\", \"display\": \"Dynamic\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}, {\"attachment\": {\"contentType\": \"text/html\", \"url\": \"https://www.google.com/\", \"creation\": \"2024-06-18T12:07:40+01:00\"}, \"format\": {\"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\", \"code\": \"urn:nhs-ic:record-contact\", \"display\": \"Contact details (HTTP Unsecured)\"}, \"extension\": [{\"valueCodeableConcept\": {\"coding\": [{\"id\": \"ZZZZ\", \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\", \"code\": \"static\", \"display\": \"Static\"}]}, \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}], \"context\": {\"period\": {\"start\": \"2022-02-28T12:04:38.3143068+00:00\", \"end\": \"2035-08-15T11:12:53Z\"}, \"practiceSetting\": {\"coding\": [{\"system\": \"http://snomed.info/sct\", \"code\": \"310167005\", \"display\": \"Urology service\"}]}, \"related\": [{\"identifier\": {\"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\", \"value\": \"200000000610\"}}]}}', 'custodian': 'RQI', 'author': 'RAE', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2024-09-11T12:08:24.533Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T14:42:29.086Z#D#RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c', 'id': 'RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c', 'pk': 'D#RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c\",\"meta\":{\"lastUpdated\":\"2025-01-03T14:42:29.086Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-03T14:42:29.086Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T14:42:29.086Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T15:19:57.375Z#D#RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67', 'id': 'RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67', 'pk': 'D#RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67\",\"meta\":{\"lastUpdated\":\"2025-01-03T15:19:57.375Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-03T15:19:57.375Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T15:19:57.375Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'ABCDEFG123456', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T15:21:39.959Z#D#ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354', 'id': 'ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354', 'pk': 'D#ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354\",\"meta\":{\"lastUpdated\":\"2025-01-03T15:21:39.959Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-03T15:21:39.959Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"ABCDEFG123456\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'ABCDEFG123456', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T15:21:39.959Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'ABCDEFG123456', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T15:27:04.783Z#D#ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497', 'id': 'ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497', 'pk': 'D#ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497\",\"meta\":{\"lastUpdated\":\"2025-01-03T15:27:04.783Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-03T15:27:04.783Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"ABCDEFG123456\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'ABCDEFG123456', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T15:27:04.783Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T15:40:29.999Z#D#RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'id': 'RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'pk': 'D#RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-c98ba557-23ec-4477-a149-6ad8464ef757\",\"meta\":{\"lastUpdated\":\"2025-01-03T15:40:29.999Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-03T15:40:29.999Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-09-12T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-07-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-03T15:40:29.999Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-c98ba557-23ec-4477-a149-6ad8464ef767', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-03T15:40:29.999Z#D#RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'id': 'RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'pk': 'D#RQI-c98ba557-23ec-4477-a149-6ad8464ef767', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-c98ba557-23ec-4477-a149-6ad8464ef767\",\"meta\":{\"lastUpdated\":\"2025-01-03T15:40:29.999Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-03T15:40:29.999Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-09-12T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-07-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-08T08:40:29.999Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-88618511-6012-46d1-bca2-3a7749ca9656', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-20T15:36:27.133Z#D#RQI-88618511-6012-46d1-bca2-3a7749ca9656', 'id': 'RQI-88618511-6012-46d1-bca2-3a7749ca9656', 'pk': 'D#RQI-88618511-6012-46d1-bca2-3a7749ca9656', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-88618511-6012-46d1-bca2-3a7749ca9656\",\"meta\":{\"lastUpdated\":\"2025-01-20T15:36:27.133Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-20T15:36:27.133Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"event\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"445627002\",\"display\":\"Assessment using adult early warning scoring system\"}]}],\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-20T15:36:27.133Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-da06fcae-ab5b-449c-8517-513c3b277022', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-20T15:36:51.755Z#D#RQI-da06fcae-ab5b-449c-8517-513c3b277022', 'id': 'RQI-da06fcae-ab5b-449c-8517-513c3b277022', 'pk': 'D#RQI-da06fcae-ab5b-449c-8517-513c3b277022', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-da06fcae-ab5b-449c-8517-513c3b277022\",\"meta\":{\"lastUpdated\":\"2025-01-20T15:36:51.755Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-20T15:36:51.755Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"event\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"display\":\"Assessment using adult early warning scoring system\"}]}],\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-20T15:36:51.755Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': 'urn:oid:1.3.6.1.4.1.21367.2005.4.0', 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'masterid_key': 'O#RQI#MI#urn:oid:1.3.6.1.4.1.21367.2005.4.0', 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-21T15:10:41.623Z#D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450', 'pk': 'D#RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450\",\"meta\":{\"lastUpdated\":\"2025-01-21T15:10:41.623Z\"},\"masterIdentifier\":{\"system\":\"urn:ietf:rfc:3986\",\"value\":\"urn:oid:1.3.6.1.4.1.21367.2005.4.0\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-21T15:10:41.623Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"creation\":\"2024-10-29T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]},{\"attachment\":{\"contentType\":\"text/html\",\"url\":\"https://www.google.com\",\"creation\":\"2024-04-11T03:31:12+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:record-contact\",\"display\":\"Contact details (HTTP Unsecured)\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-21T15:10:41.623Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-23T14:42:06.152Z#D#RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb', 'id': 'RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb', 'pk': 'D#RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb\",\"meta\":{\"lastUpdated\":\"2025-01-23T14:42:06.152Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-23T14:42:06.152Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"event\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"445627002\",\"display\":\"Assessment using adult early warning scoring system\"}]}],\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-23T14:42:06.152Z'}, {'nhs_number': '9694200822', 'version': '1', 'category_id': 'SCT-734163000', 'producer_id': 'RQI', 'source': 'NRLF', 'master_identifier': None, 'updated_on': None, 'patient_key': 'P#9694200822', 'custodian_suffix': None, 'type_id': 'SCT-736253002', 'schemas': [], 'category': 'http://snomed.info/sct|734163000', 'sk': 'D#RQI-b8597054-2e9d-467a-a671-20e553b330f4', 'patient_sort': 'C#SCT-734163000#T#SCT-736253002#CO#2025-01-27T10:44:14.775Z#D#RQI-b8597054-2e9d-467a-a671-20e553b330f4', 'id': 'RQI-b8597054-2e9d-467a-a671-20e553b330f4', 'pk': 'D#RQI-b8597054-2e9d-467a-a671-20e553b330f4', 'document': '{\"resourceType\":\"DocumentReference\",\"id\":\"RQI-b8597054-2e9d-467a-a671-20e553b330f4\",\"meta\":{\"lastUpdated\":\"2025-01-27T10:44:14.775Z\"},\"status\":\"current\",\"type\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"736253002\",\"display\":\"Mental health crisis plan\"}]},\"category\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"734163000\",\"display\":\"Care plan\"}]}],\"subject\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhs-number\",\"value\":\"9694200822\"}},\"date\":\"2025-01-27T10:44:14.775Z\",\"author\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}}],\"custodian\":{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/ods-organization-code\",\"value\":\"RQI\"}},\"content\":[{\"attachment\":{\"contentType\":\"application/pdf\",\"url\":\"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\"size\":1000,\"creation\":\"2024-10-28T15:26:00+01:00\"},\"format\":{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\"code\":\"urn:nhs-ic:unstructured\",\"display\":\"Unstructured Document\"},\"extension\":[{\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\"code\":\"static\",\"display\":\"Static\"}]},\"url\":\"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"}]}],\"context\":{\"event\":[{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"445627002\",\"display\":\"Assessment using adult early warning scoring system\"}]}],\"period\":{\"start\":\"2024-03-06T13:34:00+01:00\",\"end\":\"2026-03-06T13:34:00+01:00\"},\"practiceSetting\":{\"coding\":[{\"system\":\"http://snomed.info/sct\",\"code\":\"788002001\",\"display\":\"Adult mental health service\"}]},\"related\":[{\"identifier\":{\"system\":\"https://fhir.nhs.uk/Id/nhsSpineASID\",\"value\":\"200000001991\"}}]}}', 'custodian': 'RQI', 'author': 'RQI', 'type': 'http://snomed.info/sct|736253002', 'created_on': '2025-01-27T10:44:14.775Z'}], 'Count': 12, 'ScannedCount': 12, 'ConsumedCapacity': {'TableName': 'nhsd-nrlf--dev-pointers-table', 'CapacityUnits': 4.0, 'Table': {'CapacityUnits': 0.0}, 'GlobalSecondaryIndexes': {'patient_gsi': {'CapacityUnits': 4.0}}}, 'ResponseMetadata': {'RequestId': '6K9QOPREKHT8GDUAO5T2VC2QR7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Fri, 31 Jan 2025 08:48:12 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '35929', 'connection': 'keep-alive', 'x-amzn-requestid': '6K9QOPREKHT8GDUAO5T2VC2QR7VV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '4164122681'}, 'RetryAttempts': 0}}, 'log_reference': 'REPOSITORY028a', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.747, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,747+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.747, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,747+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': '8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.747, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,747+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.748, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,748+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d', 'count': 1, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': 'bdbc0317-996b-4f06-a9c3-0cd5389c2c7c', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.749, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,749+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.758, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,758+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c', 'count': 2, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.758, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,758+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.758, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,758+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': 'dfac3664-91fd-41f6-b58e-5f89b02dbe67', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67', 'count': 3, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'ABCDEFG123456', 'document_id': '16b7bd1f-df65-443a-b1b4-125f70fca354', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.759, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,759+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'ABCDEFG123456', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354', 'count': 4, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'ABCDEFG123456', 'document_id': 'b71fe7d5-f132-42cd-842f-65f7d3818497', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.76, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,760+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'ABCDEFG123456', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497', 'count': 5, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': 'c98ba557-23ec-4477-a149-6ad8464ef757', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.761, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,761+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-c98ba557-23ec-4477-a149-6ad8464ef757', 'count': 6, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,762+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,762+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': 'c98ba557-23ec-4477-a149-6ad8464ef757', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,762+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,762+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,762+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-c98ba557-23ec-4477-a149-6ad8464ef767', 'count': 7, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.762, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,762+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,763+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': '88618511-6012-46d1-bca2-3a7749ca9656', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,763+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,763+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,763+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-88618511-6012-46d1-bca2-3a7749ca9656', 'count': 8, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,763+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.763, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,763+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': 'da06fcae-ab5b-449c-8517-513c3b277022', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-da06fcae-ab5b-449c-8517-513c3b277022', 'count': 9, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': '7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.764, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,764+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.765, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,765+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450', 'count': 10, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.765, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,765+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.765, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,765+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': '54a7f23c-fcba-4074-973b-ee36d504bbeb', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.765, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,765+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.765, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,765+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.766, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,766+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb', 'count': 11, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.778, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:198', 'message': 'Extracting producer ID from the document ID', 'timestamp': '2025-01-31 08:48:12,778+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER003', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.778, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'inject_producer_id:217', 'message': 'Extracted producer ID and document ID', 'timestamp': '2025-01-31 08:48:12,778+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'producer_id': 'RQI', 'document_id': 'b8597054-2e9d-467a-a671-20e553b330f4', 'log_reference': 'DOCPOINTER004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.778, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:169', 'message': 'Extracting custodian suffix from custodian', 'timestamp': '2025-01-31 08:48:12,778+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'DOCPOINTER001', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.778, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'extract_custodian_suffix:184', 'message': 'Extracted custodian ID and custodian suffix', 'timestamp': '2025-01-31 08:48:12,778+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'custodian': 'RQI', 'log_reference': 'DOCPOINTER002', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.779, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'DEBUG', 'location': 'handler:117', 'message': 'Parsed DocumentReference and added to search results', 'timestamp': '2025-01-31 08:48:12,779+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'id': 'RQI-b8597054-2e9d-467a-a671-20e553b330f4', 'count': 12, 'log_reference': 'CONSEARCH004', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.782, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'handler:136', 'message': 'Successfully completed consumer searchPostDocumentReference', 'timestamp': '2025-01-31 08:48:12,782+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'log_reference': 'CONPOSTSEARCH999', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.798, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:291', 'message': 'Request handler returned successfully', 'timestamp': '2025-01-31 08:48:12,798+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'status_code': '200', 'response': {'statusCode': '200', 'body': '{\\n \"resourceType\": \"Bundle\",\\n \"type\": \"searchset\",\\n \"total\": 12,\\n \"link\": [\\n {\\n \"relation\": \"self\",\\n \"url\": \"https://dev.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9694200822\"\\n }\\n ],\\n \"entry\": [\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-8a38ad2b-7036-11ef-b825-0224f2d65e7a-58485059394d5942384d\",\\n \"meta\": {\\n \"lastUpdated\": \"2024-09-11T12:08:24.533Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:uuid:25e2b1c8-ecd8-48f8-9958-8e614cc7ad105\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2024-09-11T12:08:22+00:00\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RAE\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-07-28T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"dynamic\",\\n \"display\": \"Dynamic\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com/\",\\n \"creation\": \"2024-06-18T12:07:40+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"id\": \"ZZZZ\",\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2022-02-28T12:04:38.3143068+00:00\",\\n \"end\": \"2035-08-15T11:12:53Z\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"310167005\",\\n \"display\": \"Urology service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000000610\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-bdbc0317-996b-4f06-a9c3-0cd5389c2c7c\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T14:42:29.086Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-03T14:42:29.086Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-dfac3664-91fd-41f6-b58e-5f89b02dbe67\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T15:19:57.375Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-03T15:19:57.375Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"ABCDEFG123456-16b7bd1f-df65-443a-b1b4-125f70fca354\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T15:21:39.959Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-03T15:21:39.959Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"ABCDEFG123456\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"ABCDEFG123456-b71fe7d5-f132-42cd-842f-65f7d3818497\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T15:27:04.783Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-03T15:27:04.783Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"ABCDEFG123456\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-c98ba557-23ec-4477-a149-6ad8464ef757\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T15:40:29.999Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-03T15:40:29.999Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-09-12T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-07-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-c98ba557-23ec-4477-a149-6ad8464ef767\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-03T15:40:29.999Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-03T15:40:29.999Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-09-12T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-07-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-88618511-6012-46d1-bca2-3a7749ca9656\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-20T15:36:27.133Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-20T15:36:27.133Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"event\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"445627002\",\\n \"display\": \"Assessment using adult early warning scoring system\"\\n }\\n ]\\n }\\n ],\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-da06fcae-ab5b-449c-8517-513c3b277022\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-20T15:36:51.755Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-20T15:36:51.755Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"event\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"display\": \"Assessment using adult early warning scoring system\"\\n }\\n ]\\n }\\n ],\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-7c184ad0-e385-11e9-a12e-f40343488b16-583532544d4539563450\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-21T15:10:41.623Z\"\\n },\\n \"masterIdentifier\": {\\n \"system\": \"urn:ietf:rfc:3986\",\\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.0\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-21T15:10:41.623Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"creation\": \"2024-10-29T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n },\\n {\\n \"attachment\": {\\n \"contentType\": \"text/html\",\\n \"url\": \"https://www.google.com\",\\n \"creation\": \"2024-04-11T03:31:12+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:record-contact\",\\n \"display\": \"Contact details (HTTP Unsecured)\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-54a7f23c-fcba-4074-973b-ee36d504bbeb\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-23T14:42:06.152Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-23T14:42:06.152Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"event\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"445627002\",\\n \"display\": \"Assessment using adult early warning scoring system\"\\n }\\n ]\\n }\\n ],\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n },\\n {\\n \"resource\": {\\n \"resourceType\": \"DocumentReference\",\\n \"id\": \"RQI-b8597054-2e9d-467a-a671-20e553b330f4\",\\n \"meta\": {\\n \"lastUpdated\": \"2025-01-27T10:44:14.775Z\"\\n },\\n \"status\": \"current\",\\n \"type\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"736253002\",\\n \"display\": \"Mental health crisis plan\"\\n }\\n ]\\n },\\n \"category\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"734163000\",\\n \"display\": \"Care plan\"\\n }\\n ]\\n }\\n ],\\n \"subject\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\\n \"value\": \"9694200822\"\\n }\\n },\\n \"date\": \"2025-01-27T10:44:14.775Z\",\\n \"author\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n }\\n ],\\n \"custodian\": {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\\n \"value\": \"RQI\"\\n }\\n },\\n \"content\": [\\n {\\n \"attachment\": {\\n \"contentType\": \"application/pdf\",\\n \"url\": \"ssp://Test1-D4V3N.bettercare.thirdparty.nhs.uk/Binary/D4V3N/documents/london-scpa-uat/4ffebd3d-4e94-43c9-86f6-75352e4fc8e9\",\\n \"size\": 1000,\\n \"creation\": \"2024-10-28T15:26:00+01:00\"\\n },\\n \"format\": {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\",\\n \"code\": \"urn:nhs-ic:unstructured\",\\n \"display\": \"Unstructured Document\"\\n },\\n \"extension\": [\\n {\\n \"valueCodeableConcept\": {\\n \"coding\": [\\n {\\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\\n \"code\": \"static\",\\n \"display\": \"Static\"\\n }\\n ]\\n },\\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\"\\n }\\n ]\\n }\\n ],\\n \"context\": {\\n \"event\": [\\n {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"445627002\",\\n \"display\": \"Assessment using adult early warning scoring system\"\\n }\\n ]\\n }\\n ],\\n \"period\": {\\n \"start\": \"2024-03-06T13:34:00+01:00\",\\n \"end\": \"2026-03-06T13:34:00+01:00\"\\n },\\n \"practiceSetting\": {\\n \"coding\": [\\n {\\n \"system\": \"http://snomed.info/sct\",\\n \"code\": \"788002001\",\\n \"display\": \"Adult mental health service\"\\n }\\n ]\\n },\\n \"related\": [\\n {\\n \"identifier\": {\\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\\n \"value\": \"200000001991\"\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}', 'headers': {}, 'isBase64Encoded': False}, 'log_reference': 'HANDLER999', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'time': 1738313292.799, 'index': 'aws_recordlocator_dev', 'host': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'source': 'lambda', 'event': {'level': 'INFO', 'location': 'wrapper:101', 'message': 'Set response headers', 'timestamp': '2025-01-31 08:48:12,799+0000', 'service': 'service_undefined', 'cold_start': True, 'function_name': 'nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_memory_size': '512', 'function_arn': 'arn:aws:lambda:eu-west-2:360016957465:function:nhsd-nrlf--dev-1--api--consumer--searchPostDocumentReference', 'function_request_id': 'e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2', 'correlation_id': '4e90da85-06f8-41c8-a437-42a549ee0980.a6c4edfa-9288-4bd3-8ce0-3154154b8393.rrt-6283362596799979817-b-geu2-65540-18927505-1', 'status_code': '', 'headers': {}, 'log_reference': 'HANDLER016', 'xray_trace_id': '1-679c8e4a-82607de66bb078f2c810de41'}}, {'raw_message': 'END RequestId: e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2\\n'}, {'raw_message': 'REPORT RequestId: e7015a31-f3b1-402e-a6fd-86bcb5d1a0a2\\tDuration: 837.28 ms\\tBilled Duration: 838 ms\\tMemory Size: 512 MB\\tMax Memory Used: 132 MB\\tInit Duration: 1454.67 ms\\t\\n'}]\n" - ] - } - ], + "outputs": [], "source": [ "print(logs)" ] }, { "cell_type": "code", - "execution_count": 109, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "{'raw_message': 'str', 'time': 'float', 'index': 'str', 'host': 'str', 'source': 'str', 'event__level': 'str', 'event__location': 'str', 'event__message': 'str', 'event__timestamp': 'str', 'event__service': 'str', 'event__cold_start': 'bool', 'event__function_name': 'str', 'event__function_memory_size': 'str', 'event__function_arn': 'str', 'event__function_request_id': 'str', 'event__correlation_id': 'str', 'event__method': 'str', 'event__path': 'str', 'event__headers__accept': 'str', 'event__headers__accept-encoding': 'str', 'event__headers__Authorization': 'str', 'event__headers__content-type': 'str', 'event__headers__Host': 'str', 'event__headers__NHSD-Client-RP-Details': 'str', 'event__headers__NHSD-Connection-Metadata': 'str', 'event__headers__NHSD-Correlation-Id': 'str', 'event__headers__User-Agent': 'str', 'event__headers__X-Forwarded-For': 'str', 'event__headers__X-Request-Id': 'str', 'event__headers': 'dict', 'event__log_reference': 'str', 'event__xray_trace_id': 'str', 'event': 'dict', 'event__config__AWS_REGION': 'str', 'event__config__PREFIX': 'str', 'event__config__ENVIRONMENT': 'str', 'event__config__SPLUNK_INDEX': 'str', 'event__config__SOURCE': 'str', 'event__config__AUTH_STORE': 'str', 'event__config__TABLE_NAME': 'str', 'event__config': 'dict', 'event__metadata__ods_code': 'str', 'event__metadata__nrl_app_id': 'str', 'event__metadata__client_rp_details__developer_app_name': 'str', 'event__metadata__client_rp_details__developer_app_id': 'str', 'event__metadata__client_rp_details': 'dict', 'event__metadata': 'dict', 'event__pointer_types': 'list.str', 'event__body': 'str', 'event__model': 'str', 'event__parsed_body__subject_identifier': 'str', 'event__parsed_body': 'dict', 'event__table_name': 'str', 'event__item_type': 'str', 'event__original_kwargs_keys': 'str', 'event__filtered_kwargs_keys': 'str', 'event__nhs_number': 'str', 'event__query__IndexName': 'str', 'event__query__KeyConditionExpression': 'str', 'event__query__ExpressionAttributeValues__:patient_key': 'str', 'event__query__ExpressionAttributeValues__:patient_sort': 'str', 'event__query__ExpressionAttributeValues': 'dict', 'event__query__ReturnConsumedCapacity': 'str', 'event__query': 'dict', 'event__table': 'str', 'event__stats__count': 'int', 'event__stats__scanned_count': 'int', 'event__stats': 'dict', 'event__result__Items': 'list.dict', 'event__result__Items__nhs_number': 'str', 'event__result__Items__version': 'str', 'event__result__Items__category_id': 'str', 'event__result__Items__producer_id': 'str', 'event__result__Items__source': 'str', 'event__result__Items__patient_key': 'str', 'event__result__Items__type_id': 'str', 'event__result__Items__schemas': 'list.str', 'event__result__Items__category': 'str', 'event__result__Items__sk': 'str', 'event__result__Items__patient_sort': 'str', 'event__result__Items__id': 'str', 'event__result__Items__pk': 'str', 'event__result__Items__document': 'str', 'event__result__Items__custodian': 'str', 'event__result__Items__author': 'str', 'event__result__Items__type': 'str', 'event__result__Items__created_on': 'str', 'event__result__Count': 'int', 'event__result__ScannedCount': 'int', 'event__result__ConsumedCapacity__TableName': 'str', 'event__result__ConsumedCapacity__CapacityUnits': 'float', 'event__result__ConsumedCapacity__Table': 'dict', 'event__result__ConsumedCapacity__GlobalSecondaryIndexes__patient_gsi__CapacityUnits': 'float', 'event__result__ConsumedCapacity__GlobalSecondaryIndexes__patient_gsi': 'dict', 'event__result__ConsumedCapacity__GlobalSecondaryIndexes': 'dict', 'event__result__ConsumedCapacity': 'dict', 'event__result__ResponseMetadata__RequestId': 'str', 'event__result__ResponseMetadata__HTTPStatusCode': 'int', 'event__result__ResponseMetadata__HTTPHeaders__server': 'str', 'event__result__ResponseMetadata__HTTPHeaders__date': 'str', 'event__result__ResponseMetadata__HTTPHeaders__content-type': 'str', 'event__result__ResponseMetadata__HTTPHeaders__content-length': 'str', 'event__result__ResponseMetadata__HTTPHeaders__connection': 'str', 'event__result__ResponseMetadata__HTTPHeaders__x-amzn-requestid': 'str', 'event__result__ResponseMetadata__HTTPHeaders__x-amz-crc32': 'str', 'event__result__ResponseMetadata__HTTPHeaders': 'dict', 'event__result__ResponseMetadata': 'dict', 'event__result': 'dict', 'event__producer_id': 'str', 'event__document_id': 'str', 'event__custodian': 'str', 'event__id': 'str', 'event__count': 'int', 'event__status_code': 'str', 'event__response__statusCode': 'str', 'event__response__body': 'str', 'event__response': 'dict', 'event__headers__NHSD-Correlation-ID': 'str', 'event__headers__NHSD-End-User-Organisation-ODS': 'str', 'event__headers__NHSD-Request-ID': 'str', 'event__headers__X-Forwarded-Port': 'str', 'event__headers__X-Forwarded-Proto': 'str', 'event__headers__nhsd-correlation-id': 'str', 'event__headers__x-correlation-id': 'str', 'event__headers__x-request-id': 'str', 'event__error': 'str', 'event__exception': 'str', 'event__exception_name': 'str', 'event__stack_trace__type': 'str', 'event__stack_trace__value': 'str', 'event__stack_trace__module': 'str', 'event__stack_trace__frames': 'list.dict', 'event__stack_trace__frames__file': 'str', 'event__stack_trace__frames__line': 'int', 'event__stack_trace__frames__function': 'str', 'event__stack_trace__frames__statement': 'str', 'event__stack_trace': 'dict', 'event__bucket': 'str', 'event__key': 'str', 'event__query__ExpressionAttributeValues__:type_0': 'str', 'event__query__ExpressionAttributeValues__:type_1': 'str', 'event__query__ExpressionAttributeValues__:type_2': 'str', 'event__query__ExpressionAttributeValues__:type_3': 'str', 'event__query__ExpressionAttributeValues__:type_4': 'str', 'event__query__ExpressionAttributeValues__:type_5': 'str', 'event__query__ExpressionAttributeValues__:type_6': 'str', 'event__query__ExpressionAttributeValues__:type_7': 'str', 'event__query__ExpressionAttributeValues__:type_8': 'str', 'event__query__FilterExpression': 'str', 'event__query__ExpressionAttributeNames__#pointer_type': 'str', 'event__query__ExpressionAttributeNames': 'dict', 'event__query__ExpressionAttributeValues__:type_9': 'str', 'event__query__ExpressionAttributeValues__:type_10': 'str', 'event__subject_identifier': 'str', 'event__result__Items__master_identifier': 'str', 'event__result__Items__masterid_key': 'str', 'event__headers__cache-control': 'str', 'event__headers__Postman-Token': 'str', 'event__query__ExpressionAttributeValues__:type_11': 'str', 'event__query__ExpressionAttributeValues__:type_12': 'str', 'event__result__Items__updated_on': 'str', 'event__parsed_body__type': 'str', 'event__parsed_body__custodian_identifier': 'str', 'event__type': 'str'}\n", - "{'raw_message': {'metadata': {}, 'name': 'raw_message', 'nullable': True, 'type': 'string'}, 'time': {'metadata': {}, 'name': 'time', 'nullable': True, 'type': 'double'}, 'index': {'metadata': {}, 'name': 'index', 'nullable': True, 'type': 'string'}, 'host': {'metadata': {}, 'name': 'host', 'nullable': True, 'type': 'string'}, 'source': {'metadata': {}, 'name': 'source', 'nullable': True, 'type': 'string'}, 'event': {'metadata': {}, 'name': 'event', 'nullable': True, 'type': {'fields': {'level': {'metadata': {}, 'name': 'level', 'nullable': True, 'type': 'string'}, 'location': {'metadata': {}, 'name': 'location', 'nullable': True, 'type': 'string'}, 'message': {'metadata': {}, 'name': 'message', 'nullable': True, 'type': 'string'}, 'timestamp': {'metadata': {}, 'name': 'timestamp', 'nullable': True, 'type': 'string'}, 'service': {'metadata': {}, 'name': 'service', 'nullable': True, 'type': 'string'}, 'cold_start': {'metadata': {}, 'name': 'cold_start', 'nullable': True, 'type': 'boolean'}, 'function_name': {'metadata': {}, 'name': 'function_name', 'nullable': True, 'type': 'string'}, 'function_memory_size': {'metadata': {}, 'name': 'function_memory_size', 'nullable': True, 'type': 'string'}, 'function_arn': {'metadata': {}, 'name': 'function_arn', 'nullable': True, 'type': 'string'}, 'function_request_id': {'metadata': {}, 'name': 'function_request_id', 'nullable': True, 'type': 'string'}, 'correlation_id': {'metadata': {}, 'name': 'correlation_id', 'nullable': True, 'type': 'string'}, 'method': {'metadata': {}, 'name': 'method', 'nullable': True, 'type': 'string'}, 'path': {'metadata': {}, 'name': 'path', 'nullable': True, 'type': 'string'}, 'headers': {'metadata': {}, 'name': 'headers', 'nullable': True, 'type': {'fields': {'accept': {'metadata': {}, 'name': 'accept', 'nullable': True, 'type': 'string'}, 'accept-encoding': {'metadata': {}, 'name': 'accept-encoding', 'nullable': True, 'type': 'string'}, 'Authorization': {'metadata': {}, 'name': 'Authorization', 'nullable': True, 'type': 'string'}, 'content-type': {'metadata': {}, 'name': 'content-type', 'nullable': True, 'type': 'string'}, 'Host': {'metadata': {}, 'name': 'Host', 'nullable': True, 'type': 'string'}, 'NHSD-Client-RP-Details': {'metadata': {}, 'name': 'NHSD-Client-RP-Details', 'nullable': True, 'type': 'string'}, 'NHSD-Connection-Metadata': {'metadata': {}, 'name': 'NHSD-Connection-Metadata', 'nullable': True, 'type': 'string'}, 'NHSD-Correlation-Id': {'metadata': {}, 'name': 'NHSD-Correlation-Id', 'nullable': True, 'type': 'string'}, 'User-Agent': {'metadata': {}, 'name': 'User-Agent', 'nullable': True, 'type': 'string'}, 'X-Forwarded-For': {'metadata': {}, 'name': 'X-Forwarded-For', 'nullable': True, 'type': 'string'}, 'X-Request-Id': {'metadata': {}, 'name': 'X-Request-Id', 'nullable': True, 'type': 'string'}, 'NHSD-Correlation-ID': {'metadata': {}, 'name': 'NHSD-Correlation-ID', 'nullable': True, 'type': 'string'}, 'NHSD-End-User-Organisation-ODS': {'metadata': {}, 'name': 'NHSD-End-User-Organisation-ODS', 'nullable': True, 'type': 'string'}, 'NHSD-Request-ID': {'metadata': {}, 'name': 'NHSD-Request-ID', 'nullable': True, 'type': 'string'}, 'X-Forwarded-Port': {'metadata': {}, 'name': 'X-Forwarded-Port', 'nullable': True, 'type': 'string'}, 'X-Forwarded-Proto': {'metadata': {}, 'name': 'X-Forwarded-Proto', 'nullable': True, 'type': 'string'}, 'nhsd-correlation-id': {'metadata': {}, 'name': 'nhsd-correlation-id', 'nullable': True, 'type': 'string'}, 'x-correlation-id': {'metadata': {}, 'name': 'x-correlation-id', 'nullable': True, 'type': 'string'}, 'x-request-id': {'metadata': {}, 'name': 'x-request-id', 'nullable': True, 'type': 'string'}, 'cache-control': {'metadata': {}, 'name': 'cache-control', 'nullable': True, 'type': 'string'}, 'Postman-Token': {'metadata': {}, 'name': 'Postman-Token', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}, 'log_reference': {'metadata': {}, 'name': 'log_reference', 'nullable': True, 'type': 'string'}, 'xray_trace_id': {'metadata': {}, 'name': 'xray_trace_id', 'nullable': True, 'type': 'string'}, 'config': {'metadata': {}, 'name': 'config', 'nullable': True, 'type': {'fields': {'AWS_REGION': {'metadata': {}, 'name': 'AWS_REGION', 'nullable': True, 'type': 'string'}, 'PREFIX': {'metadata': {}, 'name': 'PREFIX', 'nullable': True, 'type': 'string'}, 'ENVIRONMENT': {'metadata': {}, 'name': 'ENVIRONMENT', 'nullable': True, 'type': 'string'}, 'SPLUNK_INDEX': {'metadata': {}, 'name': 'SPLUNK_INDEX', 'nullable': True, 'type': 'string'}, 'SOURCE': {'metadata': {}, 'name': 'SOURCE', 'nullable': True, 'type': 'string'}, 'AUTH_STORE': {'metadata': {}, 'name': 'AUTH_STORE', 'nullable': True, 'type': 'string'}, 'TABLE_NAME': {'metadata': {}, 'name': 'TABLE_NAME', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}, 'metadata': {'metadata': {}, 'name': 'metadata', 'nullable': True, 'type': {'fields': {'ods_code': {'metadata': {}, 'name': 'ods_code', 'nullable': True, 'type': 'string'}, 'nrl_app_id': {'metadata': {}, 'name': 'nrl_app_id', 'nullable': True, 'type': 'string'}, 'client_rp_details': {'metadata': {}, 'name': 'client_rp_details', 'nullable': True, 'type': {'fields': {'developer_app_name': {'metadata': {}, 'name': 'developer_app_name', 'nullable': True, 'type': 'string'}, 'developer_app_id': {'metadata': {}, 'name': 'developer_app_id', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}}, 'type': 'struct'}}, 'pointer_types': {'metadata': {}, 'name': 'pointer_types', 'nullable': True, 'type': {'type': 'array', 'elementType': 'string', 'containsNull': True}}, 'body': {'metadata': {}, 'name': 'body', 'nullable': True, 'type': 'string'}, 'model': {'metadata': {}, 'name': 'model', 'nullable': True, 'type': 'string'}, 'parsed_body': {'metadata': {}, 'name': 'parsed_body', 'nullable': True, 'type': {'fields': {'subject_identifier': {'metadata': {}, 'name': 'subject_identifier', 'nullable': True, 'type': 'string'}, 'type': {'metadata': {}, 'name': 'type', 'nullable': True, 'type': 'string'}, 'custodian_identifier': {'metadata': {}, 'name': 'custodian_identifier', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}, 'table_name': {'metadata': {}, 'name': 'table_name', 'nullable': True, 'type': 'string'}, 'item_type': {'metadata': {}, 'name': 'item_type', 'nullable': True, 'type': 'string'}, 'original_kwargs_keys': {'metadata': {}, 'name': 'original_kwargs_keys', 'nullable': True, 'type': 'string'}, 'filtered_kwargs_keys': {'metadata': {}, 'name': 'filtered_kwargs_keys', 'nullable': True, 'type': 'string'}, 'nhs_number': {'metadata': {}, 'name': 'nhs_number', 'nullable': True, 'type': 'string'}, 'query': {'metadata': {}, 'name': 'query', 'nullable': True, 'type': {'fields': {'IndexName': {'metadata': {}, 'name': 'IndexName', 'nullable': True, 'type': 'string'}, 'KeyConditionExpression': {'metadata': {}, 'name': 'KeyConditionExpression', 'nullable': True, 'type': 'string'}, 'ExpressionAttributeValues': {'metadata': {}, 'name': 'ExpressionAttributeValues', 'nullable': True, 'type': {'fields': {':patient_key': {'metadata': {}, 'name': ':patient_key', 'nullable': True, 'type': 'string'}, ':patient_sort': {'metadata': {}, 'name': ':patient_sort', 'nullable': True, 'type': 'string'}, ':type_0': {'metadata': {}, 'name': ':type_0', 'nullable': True, 'type': 'string'}, ':type_1': {'metadata': {}, 'name': ':type_1', 'nullable': True, 'type': 'string'}, ':type_2': {'metadata': {}, 'name': ':type_2', 'nullable': True, 'type': 'string'}, ':type_3': {'metadata': {}, 'name': ':type_3', 'nullable': True, 'type': 'string'}, ':type_4': {'metadata': {}, 'name': ':type_4', 'nullable': True, 'type': 'string'}, ':type_5': {'metadata': {}, 'name': ':type_5', 'nullable': True, 'type': 'string'}, ':type_6': {'metadata': {}, 'name': ':type_6', 'nullable': True, 'type': 'string'}, ':type_7': {'metadata': {}, 'name': ':type_7', 'nullable': True, 'type': 'string'}, ':type_8': {'metadata': {}, 'name': ':type_8', 'nullable': True, 'type': 'string'}, ':type_9': {'metadata': {}, 'name': ':type_9', 'nullable': True, 'type': 'string'}, ':type_10': {'metadata': {}, 'name': ':type_10', 'nullable': True, 'type': 'string'}, ':type_11': {'metadata': {}, 'name': ':type_11', 'nullable': True, 'type': 'string'}, ':type_12': {'metadata': {}, 'name': ':type_12', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}, 'ReturnConsumedCapacity': {'metadata': {}, 'name': 'ReturnConsumedCapacity', 'nullable': True, 'type': 'string'}, 'FilterExpression': {'metadata': {}, 'name': 'FilterExpression', 'nullable': True, 'type': 'string'}, 'ExpressionAttributeNames': {'metadata': {}, 'name': 'ExpressionAttributeNames', 'nullable': True, 'type': {'fields': {'#pointer_type': {'metadata': {}, 'name': '#pointer_type', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}}, 'type': 'struct'}}, 'table': {'metadata': {}, 'name': 'table', 'nullable': True, 'type': 'string'}, 'stats': {'metadata': {}, 'name': 'stats', 'nullable': True, 'type': {'fields': {'count': {'metadata': {}, 'name': 'count', 'nullable': True, 'type': 'long'}, 'scanned_count': {'metadata': {}, 'name': 'scanned_count', 'nullable': True, 'type': 'long'}}, 'type': 'struct'}}, 'result': {'metadata': {}, 'name': 'result', 'nullable': True, 'type': {'fields': {'Items': {'metadata': {}, 'name': 'Items', 'nullable': True, 'type': {'type': 'array', 'elementType': {'fields': {'nhs_number': {'metadata': {}, 'name': 'nhs_number', 'nullable': True, 'type': 'string'}, 'version': {'metadata': {}, 'name': 'version', 'nullable': True, 'type': 'string'}, 'category_id': {'metadata': {}, 'name': 'category_id', 'nullable': True, 'type': 'string'}, 'producer_id': {'metadata': {}, 'name': 'producer_id', 'nullable': True, 'type': 'string'}, 'source': {'metadata': {}, 'name': 'source', 'nullable': True, 'type': 'string'}, 'patient_key': {'metadata': {}, 'name': 'patient_key', 'nullable': True, 'type': 'string'}, 'type_id': {'metadata': {}, 'name': 'type_id', 'nullable': True, 'type': 'string'}, 'schemas': {'metadata': {}, 'name': 'schemas', 'nullable': True, 'type': {'type': 'array', 'elementType': 'string', 'containsNull': True}}, 'category': {'metadata': {}, 'name': 'category', 'nullable': True, 'type': 'string'}, 'sk': {'metadata': {}, 'name': 'sk', 'nullable': True, 'type': 'string'}, 'patient_sort': {'metadata': {}, 'name': 'patient_sort', 'nullable': True, 'type': 'string'}, 'id': {'metadata': {}, 'name': 'id', 'nullable': True, 'type': 'string'}, 'pk': {'metadata': {}, 'name': 'pk', 'nullable': True, 'type': 'string'}, 'document': {'metadata': {}, 'name': 'document', 'nullable': True, 'type': 'string'}, 'custodian': {'metadata': {}, 'name': 'custodian', 'nullable': True, 'type': 'string'}, 'author': {'metadata': {}, 'name': 'author', 'nullable': True, 'type': 'string'}, 'type': {'metadata': {}, 'name': 'type', 'nullable': True, 'type': 'string'}, 'created_on': {'metadata': {}, 'name': 'created_on', 'nullable': True, 'type': 'string'}, 'master_identifier': {'metadata': {}, 'name': 'master_identifier', 'nullable': True, 'type': 'string'}, 'masterid_key': {'metadata': {}, 'name': 'masterid_key', 'nullable': True, 'type': 'string'}, 'updated_on': {'metadata': {}, 'name': 'updated_on', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}, 'containsNull': True}}, 'Count': {'metadata': {}, 'name': 'Count', 'nullable': True, 'type': 'long'}, 'ScannedCount': {'metadata': {}, 'name': 'ScannedCount', 'nullable': True, 'type': 'long'}, 'ConsumedCapacity': {'metadata': {}, 'name': 'ConsumedCapacity', 'nullable': True, 'type': {'fields': {'TableName': {'metadata': {}, 'name': 'TableName', 'nullable': True, 'type': 'string'}, 'CapacityUnits': {'metadata': {}, 'name': 'CapacityUnits', 'nullable': True, 'type': 'double'}, 'Table': {'metadata': {}, 'name': 'Table', 'nullable': True, 'type': {'fields': {}, 'type': 'struct'}}, 'GlobalSecondaryIndexes': {'metadata': {}, 'name': 'GlobalSecondaryIndexes', 'nullable': True, 'type': {'fields': {'patient_gsi': {'metadata': {}, 'name': 'patient_gsi', 'nullable': True, 'type': {'fields': {'CapacityUnits': {'metadata': {}, 'name': 'CapacityUnits', 'nullable': True, 'type': 'double'}}, 'type': 'struct'}}}, 'type': 'struct'}}}, 'type': 'struct'}}, 'ResponseMetadata': {'metadata': {}, 'name': 'ResponseMetadata', 'nullable': True, 'type': {'fields': {'RequestId': {'metadata': {}, 'name': 'RequestId', 'nullable': True, 'type': 'string'}, 'HTTPStatusCode': {'metadata': {}, 'name': 'HTTPStatusCode', 'nullable': True, 'type': 'long'}, 'HTTPHeaders': {'metadata': {}, 'name': 'HTTPHeaders', 'nullable': True, 'type': {'fields': {'server': {'metadata': {}, 'name': 'server', 'nullable': True, 'type': 'string'}, 'date': {'metadata': {}, 'name': 'date', 'nullable': True, 'type': 'string'}, 'content-type': {'metadata': {}, 'name': 'content-type', 'nullable': True, 'type': 'string'}, 'content-length': {'metadata': {}, 'name': 'content-length', 'nullable': True, 'type': 'string'}, 'connection': {'metadata': {}, 'name': 'connection', 'nullable': True, 'type': 'string'}, 'x-amzn-requestid': {'metadata': {}, 'name': 'x-amzn-requestid', 'nullable': True, 'type': 'string'}, 'x-amz-crc32': {'metadata': {}, 'name': 'x-amz-crc32', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}}, 'type': 'struct'}}}, 'type': 'struct'}}, 'producer_id': {'metadata': {}, 'name': 'producer_id', 'nullable': True, 'type': 'string'}, 'document_id': {'metadata': {}, 'name': 'document_id', 'nullable': True, 'type': 'string'}, 'custodian': {'metadata': {}, 'name': 'custodian', 'nullable': True, 'type': 'string'}, 'id': {'metadata': {}, 'name': 'id', 'nullable': True, 'type': 'string'}, 'count': {'metadata': {}, 'name': 'count', 'nullable': True, 'type': 'long'}, 'status_code': {'metadata': {}, 'name': 'status_code', 'nullable': True, 'type': 'string'}, 'response': {'metadata': {}, 'name': 'response', 'nullable': True, 'type': {'fields': {'statusCode': {'metadata': {}, 'name': 'statusCode', 'nullable': True, 'type': 'string'}, 'body': {'metadata': {}, 'name': 'body', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}, 'error': {'metadata': {}, 'name': 'error', 'nullable': True, 'type': 'string'}, 'exception': {'metadata': {}, 'name': 'exception', 'nullable': True, 'type': 'string'}, 'exception_name': {'metadata': {}, 'name': 'exception_name', 'nullable': True, 'type': 'string'}, 'stack_trace': {'metadata': {}, 'name': 'stack_trace', 'nullable': True, 'type': {'fields': {'type': {'metadata': {}, 'name': 'type', 'nullable': True, 'type': 'string'}, 'value': {'metadata': {}, 'name': 'value', 'nullable': True, 'type': 'string'}, 'module': {'metadata': {}, 'name': 'module', 'nullable': True, 'type': 'string'}, 'frames': {'metadata': {}, 'name': 'frames', 'nullable': True, 'type': {'type': 'array', 'elementType': {'fields': {'file': {'metadata': {}, 'name': 'file', 'nullable': True, 'type': 'string'}, 'line': {'metadata': {}, 'name': 'line', 'nullable': True, 'type': 'long'}, 'function': {'metadata': {}, 'name': 'function', 'nullable': True, 'type': 'string'}, 'statement': {'metadata': {}, 'name': 'statement', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}, 'containsNull': True}}}, 'type': 'struct'}}, 'bucket': {'metadata': {}, 'name': 'bucket', 'nullable': True, 'type': 'string'}, 'key': {'metadata': {}, 'name': 'key', 'nullable': True, 'type': 'string'}, 'subject_identifier': {'metadata': {}, 'name': 'subject_identifier', 'nullable': True, 'type': 'string'}, 'type': {'metadata': {}, 'name': 'type', 'nullable': True, 'type': 'string'}}, 'type': 'struct'}}}\n" - ] - } - ], + "outputs": [], "source": [ "def checktype(obj: List):\n", " # print(obj)\n", @@ -286,7 +261,7 @@ }, { "cell_type": "code", - "execution_count": 110, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -313,20 +288,9 @@ }, { "cell_type": "code", - "execution_count": 111, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "StructType([StructField('raw_message', StringType(), True), StructField('time', DoubleType(), True), StructField('index', StringType(), True), StructField('host', StringType(), True), StructField('source', StringType(), True), StructField('event', StructType([StructField('level', StringType(), True), StructField('location', StringType(), True), StructField('message', StringType(), True), StructField('timestamp', StringType(), True), StructField('service', StringType(), True), StructField('cold_start', BooleanType(), True), StructField('function_name', StringType(), True), StructField('function_memory_size', StringType(), True), StructField('function_arn', StringType(), True), StructField('function_request_id', StringType(), True), StructField('correlation_id', StringType(), True), StructField('method', StringType(), True), StructField('path', StringType(), True), StructField('headers', StructType([StructField('accept', StringType(), True), StructField('accept-encoding', StringType(), True), StructField('Authorization', StringType(), True), StructField('content-type', StringType(), True), StructField('Host', StringType(), True), StructField('NHSD-Client-RP-Details', StringType(), True), StructField('NHSD-Connection-Metadata', StringType(), True), StructField('NHSD-Correlation-Id', StringType(), True), StructField('User-Agent', StringType(), True), StructField('X-Forwarded-For', StringType(), True), StructField('X-Request-Id', StringType(), True), StructField('NHSD-Correlation-ID', StringType(), True), StructField('NHSD-End-User-Organisation-ODS', StringType(), True), StructField('NHSD-Request-ID', StringType(), True), StructField('X-Forwarded-Port', StringType(), True), StructField('X-Forwarded-Proto', StringType(), True), StructField('nhsd-correlation-id', StringType(), True), StructField('x-correlation-id', StringType(), True), StructField('x-request-id', StringType(), True), StructField('cache-control', StringType(), True), StructField('Postman-Token', StringType(), True)]), True), StructField('log_reference', StringType(), True), StructField('xray_trace_id', StringType(), True), StructField('config', StructType([StructField('AWS_REGION', StringType(), True), StructField('PREFIX', StringType(), True), StructField('ENVIRONMENT', StringType(), True), StructField('SPLUNK_INDEX', StringType(), True), StructField('SOURCE', StringType(), True), StructField('AUTH_STORE', StringType(), True), StructField('TABLE_NAME', StringType(), True)]), True), StructField('metadata', StructType([StructField('ods_code', StringType(), True), StructField('nrl_app_id', StringType(), True), StructField('client_rp_details', StructType([StructField('developer_app_name', StringType(), True), StructField('developer_app_id', StringType(), True)]), True)]), True), StructField('pointer_types', ArrayType(StringType(), True), True), StructField('body', StringType(), True), StructField('model', StringType(), True), StructField('parsed_body', StructType([StructField('subject_identifier', StringType(), True), StructField('type', StringType(), True), StructField('custodian_identifier', StringType(), True)]), True), StructField('table_name', StringType(), True), StructField('item_type', StringType(), True), StructField('original_kwargs_keys', StringType(), True), StructField('filtered_kwargs_keys', StringType(), True), StructField('nhs_number', StringType(), True), StructField('query', StructType([StructField('IndexName', StringType(), True), StructField('KeyConditionExpression', StringType(), True), StructField('ExpressionAttributeValues', StructType([StructField(':patient_key', StringType(), True), StructField(':patient_sort', StringType(), True), StructField(':type_0', StringType(), True), StructField(':type_1', StringType(), True), StructField(':type_2', StringType(), True), StructField(':type_3', StringType(), True), StructField(':type_4', StringType(), True), StructField(':type_5', StringType(), True), StructField(':type_6', StringType(), True), StructField(':type_7', StringType(), True), StructField(':type_8', StringType(), True), StructField(':type_9', StringType(), True), StructField(':type_10', StringType(), True), StructField(':type_11', StringType(), True), StructField(':type_12', StringType(), True)]), True), StructField('ReturnConsumedCapacity', StringType(), True), StructField('FilterExpression', StringType(), True), StructField('ExpressionAttributeNames', StructType([StructField('#pointer_type', StringType(), True)]), True)]), True), StructField('table', StringType(), True), StructField('stats', StructType([StructField('count', LongType(), True), StructField('scanned_count', LongType(), True)]), True), StructField('result', StructType([StructField('Items', ArrayType(StructType([StructField('nhs_number', StringType(), True), StructField('version', StringType(), True), StructField('category_id', StringType(), True), StructField('producer_id', StringType(), True), StructField('source', StringType(), True), StructField('patient_key', StringType(), True), StructField('type_id', StringType(), True), StructField('schemas', ArrayType(StringType(), True), True), StructField('category', StringType(), True), StructField('sk', StringType(), True), StructField('patient_sort', StringType(), True), StructField('id', StringType(), True), StructField('pk', StringType(), True), StructField('document', StringType(), True), StructField('custodian', StringType(), True), StructField('author', StringType(), True), StructField('type', StringType(), True), StructField('created_on', StringType(), True), StructField('master_identifier', StringType(), True), StructField('masterid_key', StringType(), True), StructField('updated_on', StringType(), True)]), True), True), StructField('Count', LongType(), True), StructField('ScannedCount', LongType(), True), StructField('ConsumedCapacity', StructType([StructField('TableName', StringType(), True), StructField('CapacityUnits', DoubleType(), True), StructField('Table', StructType([]), True), StructField('GlobalSecondaryIndexes', StructType([StructField('patient_gsi', StructType([StructField('CapacityUnits', DoubleType(), True)]), True)]), True)]), True), StructField('ResponseMetadata', StructType([StructField('RequestId', StringType(), True), StructField('HTTPStatusCode', LongType(), True), StructField('HTTPHeaders', StructType([StructField('server', StringType(), True), StructField('date', StringType(), True), StructField('content-type', StringType(), True), StructField('content-length', StringType(), True), StructField('connection', StringType(), True), StructField('x-amzn-requestid', StringType(), True), StructField('x-amz-crc32', StringType(), True)]), True)]), True)]), True), StructField('producer_id', StringType(), True), StructField('document_id', StringType(), True), StructField('custodian', StringType(), True), StructField('id', StringType(), True), StructField('count', LongType(), True), StructField('status_code', StringType(), True), StructField('response', StructType([StructField('statusCode', StringType(), True), StructField('body', StringType(), True)]), True), StructField('error', StringType(), True), StructField('exception', StringType(), True), StructField('exception_name', StringType(), True), StructField('stack_trace', StructType([StructField('type', StringType(), True), StructField('value', StringType(), True), StructField('module', StringType(), True), StructField('frames', ArrayType(StructType([StructField('file', StringType(), True), StructField('line', LongType(), True), StructField('function', StringType(), True), StructField('statement', StringType(), True)]), True), True)]), True), StructField('bucket', StringType(), True), StructField('key', StringType(), True), StructField('subject_identifier', StringType(), True), StructField('type', StringType(), True)]), True)])" - ] - }, - "execution_count": 111, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "schema = StructType.fromJson(jsonSchema)\n", "schema" From f0d76861b6ef507751f1d765b65f992a9ebcdfe1 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 24 Apr 2025 09:32:16 +0100 Subject: [PATCH 14/16] [NRL-1179] Removed unused sudo from image packages --- Dockerfile.ci-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.ci-build b/Dockerfile.ci-build index eebec401e..33cd21b29 100644 --- a/Dockerfile.ci-build +++ b/Dockerfile.ci-build @@ -7,7 +7,7 @@ RUN apt update && \ build-essential make libssl-dev zlib1g-dev libbz2-dev libreadline-dev \ libsqlite3-dev llvm libncursesw5-dev tk-dev libxml2-dev \ libxmlsec1-dev libffi-dev libicu70 liblzma-dev \ - python3 git curl wget sudo \ + python3 git curl wget \ zip xz-utils tar unzip && \ apt clean && \ rm -rf /var/lib/apt/lists/* From 509aeb6ed61118c6bb54602c300dcda706669796 Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 24 Apr 2025 10:56:19 +0100 Subject: [PATCH 15/16] [NRL-1179] Switch ADD to COPY in Dockerfile --- Dockerfile.ci-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.ci-build b/Dockerfile.ci-build index 33cd21b29..18a8bbcb9 100644 --- a/Dockerfile.ci-build +++ b/Dockerfile.ci-build @@ -20,7 +20,7 @@ RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1 && \ echo "export PATH=\$ASDF_DIR/bin:\$PATH" >> ~/.bashrc && \ echo "export PATH=\$ASDF_DIR/shims:\$PATH" >> ~/.bashrc -ADD .tool-versions . +COPY .tool-versions . RUN for plugin in $(cat .tool-versions | cut -d' ' -f1); do \ ./.asdf/bin/asdf plugin add $plugin; \ done && \ From c63a5a43d39591d7e30136050ab476cfabbdfeaa Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 24 Apr 2025 13:11:39 +0100 Subject: [PATCH 16/16] [NRL-1179] Fix sonarcloud warnings in Dockerfile --- Dockerfile.ci-build | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/Dockerfile.ci-build b/Dockerfile.ci-build index 18a8bbcb9..b13beca43 100644 --- a/Dockerfile.ci-build +++ b/Dockerfile.ci-build @@ -3,12 +3,32 @@ FROM ubuntu:22.04 RUN apt update && \ apt upgrade -y && \ DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \ - ca-certificates curl gnupg lsb-release \ - build-essential make libssl-dev zlib1g-dev libbz2-dev libreadline-dev \ - libsqlite3-dev llvm libncursesw5-dev tk-dev libxml2-dev \ - libxmlsec1-dev libffi-dev libicu70 liblzma-dev \ - python3 git curl wget \ - zip xz-utils tar unzip && \ + build-essential \ + ca-certificates \ + curl \ + git \ + gnupg \ + libbz2-dev \ + libffi-dev \ + libicu70 \ + liblzma-dev \ + libncursesw5-dev \ + libreadline-dev \ + libsqlite3-dev \ + libssl-dev \ + libxml2-dev \ + libxmlsec1-dev \ + llvm \ + lsb-release \ + make \ + python3 \ + tar \ + tk-dev \ + unzip \ + wget \ + xz-utils \ + zip \ + zlib1g-dev && \ apt clean && \ rm -rf /var/lib/apt/lists/* @@ -22,7 +42,7 @@ RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1 && \ COPY .tool-versions . RUN for plugin in $(cat .tool-versions | cut -d' ' -f1); do \ - ./.asdf/bin/asdf plugin add $plugin; \ + ./.asdf/bin/asdf plugin add "${plugin}"; \ done && \ ./.asdf/bin/asdf install && \ ln -s $(pwd)/.asdf/shims/* /usr/local/bin/.