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 eb9f2dbb70536f5f1631fc718145ecd281555188..29dda316371dd7f227185766d353f96e898c4205 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 @@ -114,6 +114,32 @@ "regex": "^(?!f{2})([\\da-f]{2})-(?!0{32})([\\da-f]{32})-(?!0{16})([\\da-f]{16})-([\\da-f]{2})$" } ] + },{ + "selector": "request.headers('Accept').values", + "id": "Accept_parameter_presence", + "description": "The Accept parameter is mandatory.", + "requirementPriority": "MANDATORY", + "checksComposition": "oneOf", + "checks": [ + { + "type": "OCCURRENCE", + "minOccurrence": 1, + "maxOccurrence": 1 + } + ] + }, + { + "selector": "request.headers('Accept').values", + "id": "Accept_parameter_value", + "description": "Accept parameter's value SHALL be as defined in https://build.fhir.org/http.html#mime-type.", + "requirementPriority": "MANDATORY", + "checksComposition": "oneOf", + "checks": [ + { + "type": "REGEX", + "regex": "^application\\/fhir\\+(xml|json|turtle)(;( )?fhirVersion=\\d\\.\\d)?$" + } + ] }, { "selector": "request.uri.queryParams('_id').values", 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 83cc9b31a7045467afc0fe804ce8d87d6ab7a9c2..2c7e381bf4f277acdbe0064a5cc57b8475665032 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 @@ -111,6 +111,32 @@ "regex": "^(?!f{2})([\\da-f]{2})-(?!0{32})([\\da-f]{32})-(?!0{16})([\\da-f]{16})-([\\da-f]{2})$" } ] + },{ + "selector": "request.headers('Accept').values", + "id": "Accept_parameter_presence", + "description": "The Accept parameter is mandatory.", + "requirementPriority": "MANDATORY", + "checksComposition": "oneOf", + "checks": [ + { + "type": "OCCURRENCE", + "minOccurrence": 1, + "maxOccurrence": 1 + } + ] + }, + { + "selector": "request.headers('Accept').values", + "id": "Accept_parameter_value", + "description": "Accept parameter's value SHALL be as defined in https://build.fhir.org/http.html#mime-type.", + "requirementPriority": "MANDATORY", + "checksComposition": "oneOf", + "checks": [ + { + "type": "REGEX", + "regex": "^application\\/fhir\\+(xml|json|turtle)(;( )?fhirVersion=\\d\\.\\d)?$" + } + ] } ] } \ No newline at end of file