From e345d56d4512fb45f2219c5f1058621212d70ea3 Mon Sep 17 00:00:00 2001 From: VHofman <vincent.hofman@kereval.com> Date: Tue, 9 Apr 2024 16:21:54 +0200 Subject: [PATCH] Add HTTP error codes in documentation + Fix Traceparent's regex --- ...ent-Mobile Patient Demographics Query-ValidationProfile.json | 2 +- ...-Mobile Patient Demographics Retrieve-ValidationProfile.json | 2 +- EHS/CH-PDQm/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Query-ValidationProfile.json b/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Query-ValidationProfile.json index 3923706..162e0b1 100644 --- a/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Query-ValidationProfile.json +++ b/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Query-ValidationProfile.json @@ -110,7 +110,7 @@ "checks": [ { "type": "REGEX", - "regex": "^(?!f{2})([\\da-f]{2})-(?!f{32})([\\da-f]{32})-(?!f{16})([\\da-f]{16})-(?!f{2})([\\da-f]{2})$" + "regex": "^(?!f{2})([\\da-f]{2})-(?!0{32})([\\da-f]{32})-(?!0{16})([\\da-f]{16})-([\\da-f]{2})$" } ] }, diff --git a/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Retrieve-ValidationProfile.json b/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Retrieve-ValidationProfile.json index 6c96221..8d71697 100644 --- a/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Retrieve-ValidationProfile.json +++ b/EHS/CH-PDQm/CH-ITI-78-Patient-Mobile Patient Demographics Retrieve-ValidationProfile.json @@ -107,7 +107,7 @@ "checks": [ { "type": "REGEX", - "regex": "^(?!f{2})([\\da-f]{2})-(?!f{32})([\\da-f]{32})-(?!f{16})([\\da-f]{16})-(?!f{2})([\\da-f]{2})$" + "regex": "^(?!f{2})([\\da-f]{2})-(?!0{32})([\\da-f]{32})-(?!0{16})([\\da-f]{16})-([\\da-f]{2})$" } ] } diff --git a/EHS/CH-PDQm/README.md b/EHS/CH-PDQm/README.md index f557d21..f83e4ed 100644 --- a/EHS/CH-PDQm/README.md +++ b/EHS/CH-PDQm/README.md @@ -23,7 +23,7 @@ This validation profile's documentation references: | Authorization_parameter_presence | OCCURRENCE | 1..1 | The Authorization parameter is mandatory | | Authorization_parameter_value | REGEX | `^Bearer\\ [-a-zA-Z0-9._~+\\/]+=*$` | Authorization parameter's value SHALL be Bearer, followed by the token. | | traceparent_parameter_presence | OCCURRENCE | 1..1 | The traceparent parameter is mandatory in the HTTP header| -| traceparent_parameter_value | REGEX | `^(?!f{2})([\da-f]{2})-(?!f{32})([\da-f]{32})-(?!f{16})([\da-f]{16})-(?!f{2})([\da-f]{2})$` | traceparent parameter's value SHALL be as defined in fhir.ch, section [tracecontext](https://fhir.ch/ig/ch-epr-mhealth/tracecontext.html). | +| traceparent_parameter_value | REGEX | `^(?!f{2})([\da-f]{2})-(?!0{32})([\da-f]{32})-(?!0{16})([\da-f]{16})-([\da-f]{2})$` | traceparent parameter's value SHALL be as defined in fhir.ch, section [tracecontext](https://fhir.ch/ig/ch-epr-mhealth/tracecontext.html). | | _id_parameter_presence | OCCURRENCE | 0..1 | _id parameter can be used only once. | | _id_parameter_value | REGEX | `^\S+$` | _id parameter is a token. | | active_parameter_presence | OCCURRENCE | 0..1 | active parameter can be used only once. | -- GitLab