I am getting error :
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Unprocessable entity"
}
}
]
}
while creating a finacial transaction please provide the correct payload for the financial transction.
And also provide what we need to put in scope of authorization for this resource to create.
I am attaching the screen shot of the error. My payload is :
{
"resourceType": "Basic",
"code": {
"coding": [
{
"code": "FinancialTransaction"
}
]
},
"identifier": [
{
"value": "14266754",
"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": "CASH",
"display": "Cash",
"system": "http://terminology.hl7.org/CodeSystem/v2-0570"
}
],
"text": "Cash"
}
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-tendered-amount",
"valueMoney": {
"value": 12.0,
"currency": "USD"
}
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-allocation",
"extension": [
{
"url": "target",
"valueReference": {
"reference": "Account/G63392574"
}
},
{
"url": "amount",
"valueMoney": {
"value": 12.0,
"currency": "USD"
}
}
]
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-alias",
"valueString": "0111"
},
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/financial-transaction-amount",
"valueMoney": {
"value": 12.0,
"currency": "USD"
}
}
]
}