diff --git a/EHS/CH_mCSD/CH-ITI-90-Organization-GetRequest-ValidationProfile.json b/EHS/CH_mCSD/CH-ITI-90-Organization-GetRequest-ValidationProfile.json index 09eaadb29a5af974c376b67ce31d65ede1efa349..6b42f9074f984f66aa92fb50e83f5fdd6999032b 100644 --- a/EHS/CH_mCSD/CH-ITI-90-Organization-GetRequest-ValidationProfile.json +++ b/EHS/CH_mCSD/CH-ITI-90-Organization-GetRequest-ValidationProfile.json @@ -109,7 +109,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_mCSD/CH-ITI-90-Practitioner-GetRequest-ValidationProfile.json b/EHS/CH_mCSD/CH-ITI-90-Practitioner-GetRequest-ValidationProfile.json index 40a2659d25bd341e640442c4ba23c33f6890ff58..0fe8e9b0bffe61a43e56063356831df3342a19c3 100644 --- a/EHS/CH_mCSD/CH-ITI-90-Practitioner-GetRequest-ValidationProfile.json +++ b/EHS/CH_mCSD/CH-ITI-90-Practitioner-GetRequest-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_mCSD/CH-ITI-90-PractitionerRole-GetRequest-ValidationProfile.json b/EHS/CH_mCSD/CH-ITI-90-PractitionerRole-GetRequest-ValidationProfile.json index f68dcbde7415bb56d72ba129a7a1bedae007a41e..42ce0d07387939f210e5b19f31d6ef51fd86482b 100644 --- a/EHS/CH_mCSD/CH-ITI-90-PractitionerRole-GetRequest-ValidationProfile.json +++ b/EHS/CH_mCSD/CH-ITI-90-PractitionerRole-GetRequest-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_mCSD/CH-ITI-90-RetrieveRequest-ValidationProfile.json b/EHS/CH_mCSD/CH-ITI-90-RetrieveRequest-ValidationProfile.json index e1f4d9feec2fa2ee839ffdd1422705d6f6005d6b..6c1fc8504719512af228c423966b4a3ae050faba 100644 --- a/EHS/CH_mCSD/CH-ITI-90-RetrieveRequest-ValidationProfile.json +++ b/EHS/CH_mCSD/CH-ITI-90-RetrieveRequest-ValidationProfile.json @@ -109,7 +109,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_mCSD/README.md b/EHS/CH_mCSD/README.md index c8d2d6e1ccb57eca641eb9036986a59a8da5769b..b6891f8bf505fa9058960e1e834777d8c0348b69 100644 --- a/EHS/CH_mCSD/README.md +++ b/EHS/CH_mCSD/README.md @@ -11,14 +11,14 @@ date: 2023-03-14 | id | Check's type | Value | Description | |--- |--- |--- |--- | -| GETMethodChecking | FIXEDVALUE | GET | HTTP method shall be GET | +| GETMethodChecking | CLOSEDLIST | [GET,POST] | HTTP method shall be GET | | HTTP1VersionChecking | FIXEDVALUE | HTTP/1.1 | The HTTP version shall be HTTP/1.1 | | URIRegexChecking | REGEX | `^(\S)+\/FHIR-Resource$` | URI path of the request shall be followed by the mCSD resource | | HostChecking | REGEX | `^(http[s]?:\/\/)?[a-zA-Z0-9.\-\/]+(\:(\d)+)?$` | Host Shall be a server name | | 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 | OCCURENCE | 0..1 | _id parameter can be used only once. | | _id_parameter_value | REGEX | `^\S+$` | _id parameter is a token. | | _lastUpdated_parameter_presence | OCCURENCE | 0..1 | _lastUpdated parameter can be used only once. | @@ -73,4 +73,13 @@ date: 2023-03-14 | speciality_parameter_presence | OCCURENCE | 0..1 | speciality parameter can be used only once. | | speciality_parameter_value | REGEX | `^\S+$` | speciality parameter is a token.| | _include__parameter_presence | OCCURENCE | 0..1 | _include parameter can be used only once. | -| _include_parameter_value | REGEX | `^.+$` | _include parameter is a string.| \ No newline at end of file +| _include_parameter_value | REGEX | `^.+$` | _include parameter is a string.| + +## Behaviour of simulators using this HTTP Validation profile +In case of error response from HTTP Validator, simulators shall sent these HTTP error codes : +| Assertion's id | HTTP error code | +|--- |--- | +| GETMethodChecking | 404 | +| Authorization_parameter_presence | 401 | +| Authorization_parameter_presence | 401 | +| All other assertions (default) | 400 | \ No newline at end of file