Unfortunately I can not define custom search parameter as it fails with error “forbidden”.
FHIR service running in the AWS environment.
- First of all I did create search parameter
- Creating ObservationDefinition with Patient ID extension
- Enabling custom search parameter (configureSearch). At this step it fails with message Forbidden.
- When trying to GET ObservationDefinition (by skipping 3rd step) it fails with 403 error.
I can not found much information how configureSearch parameter should be enabled on FHIR documentation page. Do you know, is here somewhere detailed information how to do it?
{
"resourceType": "SearchParameter",
"url": "http://hl7.org/fhir/SearchParameter/patient-patientId",
"base": ["Patient"],
"code": "patient-id",
"name": "patient-id",
"type": "string",
"expression": "Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-patientId').value.as(String)",
"status": "active",
"description": "Search by Patient ID"
}
{
"quantitativeDetails":{
"decimalPrecision":0,
"unit":{
"coding":[
{
"display":"BPM",
"system":"http://unitsofmeasure.org",
"code":"BPM"
}
]
}
},
"preferredReportName":"Heart rate anomaly range",
"multipleResultsAllowed":false,
"code":{
"coding":[
{
"system":"http://terminology.hl7.org/CodeSystem/observation-category",
"code":"vital-signs"
}
]
},
"identifier":[
{
"value":"heart-rate-anomaly",
"id":"aa"
}
],
"permittedDataType":[
"Quantity"
],
"qualifiedInterval":[
{
"range":{
"low":{
"code":"{beats}/min",
"system":"http://unitsofmeasure.org",
"value":45,
"unit":"heart beats per minute"
},
"high":{
"code":"{beats}/min",
"system":"http://unitsofmeasure.org",
"value":126,
"unit":"heart beats per minute"
}
},
"category":"reference"
}
],
"extension":[
{
"url":"http://hl7.org/fhir/SearchParameter/patient-patientId",
"valueString":"Patient/b72fb2aa-e3d5-4187-8f75-5a690855d5eb"
}
],
"resourceType":"ObservationDefinition"
}
{
"canonicalUrls":[
"http://hl7.org/fhir/SearchParameter/patient-patientId"
]
}
Response Error:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD>
<BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
We can't connect to the server for this app or website at this time. There might be too much traffic or a
configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: xjXc6lKISDV37YezZFAqCW_eB5kfN3odB5lEiARCiRTgTVup7b5nRg==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY>
</HTML>