Workflow or API calls:
Request Body:
{
"resourceType": "Basic",
"code": {
"coding": [
{
"code": "FinancialTransaction"
}
]
},
"identifier": [
{
"value": "CI-49-737-2024-06-18",
"use": "usual"
}
],
"extension": [
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-type",
"valueCodeableConcept": {
"coding": [
{
"code": "payment",
"system": "http://terminology.hl7.org/CodeSystem/payment-type"
}
]
}
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-method",
"valueCodeableConcept": {
"coding": [
{
"code": "CCCA",
"display": "Credit Card",
"system": "http://terminology.hl7.org/CodeSystem/v2-0570"
}
],
"text": "Credit Card"
}
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-amount",
"valueMoney": {
"value": 1.05,
"currency": "USD"
}
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-date",
"valueDate": "2024-06-17"
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-account-number",
"valueString": "0002"
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-card-brand",
"valueString": "visa"
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-allocation",
"extension": [
{
"url": "target",
"valueReference": {
"reference": "Encounter/98074465"
}
},
{
"url": "amount",
"valueMoney": {
"value": 1.05,
"currency": "USD"
}
}
]
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-alias",
"valueString": "0111"
}
]
}
Expected Result:
The FinancialTransaction resource to be created
Actual Result:
Response
{
"body": "{\"resourceType\":\"OperationOutcome\",\"issue\":[{\"severity\":\"error\",\"code\":\"invalid\",\"details\":{\"text\":\"Invalid request\"}}]}",
"code": 400,
"headers": {
"content_type": "application/fhir+json; charset=utf-8",
"transfer_encoding": "chunked",
"connection": "keep-alive",
"cache_control": "no-cache",
"date": "Fri, 28 Jun 2024 16:40:05 GMT",
"server": "Oracle API Gateway",
"server_response_time": "330.985183",
"x_download_options": "noopen",
"x_content_type_options": "nosniff",
"x_frame_options": "SAMEORIGIN",
"x_xss_protection": "1; mode=block",
"strict_transport_security": "max-age=631152000",
"x_runtime": "0.330962",
"vary": "Accept,Origin",
"referrer_policy": "strict-origin-when-cross-origin",
"x_permitted_cross_domain_policies": "none",
"opc_request_id": "/4B3BB7A87019BBACDAC1884E7B071932/5A22CAB4C60D440874FE88488E46E33E",
"x_request_id": "/4B3BB7A87019BBACDAC1884E7B071932+OV49_rrfS",
"x_cache": "Error from cloudfront",
"via": "1.1 53a1f042d35b1ad7e45dd18908041b36.cloudfront.net (CloudFront)",
"x_amz_cf_pop": "JFK50-P5",
"x_amz_cf_id": "PFarYcx3GSThUKzRKUZPZBW2dKw_PAlmhcwUBRJ_0lvOVHAg3tlDGw=="
}
}
X-Request-Id:/4B3BB7A87019BBACDAC1884E7B071932+OV49_rrfS