Validation of the search parameter definitions in the CapabilityStatement
Scenario Outline
When Get FHIR resource at "http://fhirserver/metadata" with content type "json" And CapabilityStatement contains definition of search parameter "<searchParamValue>" of type "<searchParamType>" for resource "Observation"
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
2s 485ms
And CapabilityStatement contains definition of search parameter "_count" of type "number" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = '_count' and type = 'number').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
2s 934ms
And CapabilityStatement contains definition of search parameter "status" of type "token" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'status' and type = 'token').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
3s 211ms
And CapabilityStatement contains definition of search parameter "category" of type "token" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'category' and type = 'token').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
7s 706ms
And CapabilityStatement contains definition of search parameter "patient" of type "reference" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'patient' and type = 'reference').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
3s 051ms
And CapabilityStatement contains definition of search parameter "combo-code" of type "token" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'combo-code' and type = 'token').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
3s 102ms
And CapabilityStatement contains definition of search parameter "combo-code-value-quantity" of type "composite" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'combo-code-value-quantity' and type = 'composite').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
3s 149ms
And CapabilityStatement contains definition of search parameter "component-code" of type "token" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'component-code' and type = 'token').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
8s 212ms
And CapabilityStatement contains definition of search parameter "encounter" of type "reference" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'encounter' and type = 'reference').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
3s 080ms
And CapabilityStatement contains definition of search parameter "_has" of type "string" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = '_has' and type = 'string').exists()).exists()
Copy
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/metadata"
SUCCESS
8s 017ms
And CapabilityStatement contains definition of search parameter "subject" of type "reference" for resource "Observation"
INFO - rest.where(mode = 'server').resource.where(type = 'Observation' and searchParam.where(name = 'subject' and type = 'reference').exists()).exists()
Copy