NHSDigital / integration-adaptor-nhais

Adaptors which accelerate integration with national NHS systems
Apache License 2.0
4 stars 3 forks source link

Amend patient passing string value for Drugs dispensed marker #185

Closed sonalnegivarma closed 4 years ago

sonalnegivarma commented 4 years ago

{ "nhsNumber": "9999999999", "gpCode": "2750922,295", "gpTradingPartnerCode": "TES5", "healthcarePartyCode": "XX1", "freeText": "NOW AT THE ARTHUR ANDREWS CENTRE", "patches": [ { "op": "replace", "path": "/name/0/family", "value": "ROBINSON-PATTERSON" }, { "op": "add", "path": "/name/1/family", "value": "PATTERSON" }, { "op": "replace", "path": "/name/0/given/0", "value": "SALLY" }, { "op": "add", "path": "/name/0/given/1", "value": "JANE" }, { "op": "replace", "path": "/name/0/given/2", "value": "MARY KIMBERLY" }, { "op": "add", "path": "/name/0/prefix/0", "value": "MRS" }, { "op": "replace", "path": "/gender", "value": "unknown" }, { "op": "add", "path": "/birthDate", "value": "1980-05-23" }, { "op": "replace", "path": "/address/0/line/0", "value": "HOLLY COTTAGE" }, { "op": "add", "path": "/address/0/line/1", "value": "12 LONG LANE" }, { "op": "replace", "path": "/address/0/line/2", "value": "LITTLE HAMLET" }, { "op": "add", "path": "/address/0/line/3", "value": "BROMLEY" }, { "op": "replace", "path": "/address/0/line/4", "value": "KENT" }, { "op": "add", "path": "/address/0/postalCode", "value": "BR5 4ER" }, { "op": "replace", "path": "/extension/0", "value": { "url": "https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHAIS-DrugsDispensedMarker", "valueBoolean": true } }, { "op": "add", "path": "/extension/0", "value": { "url": "https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHAIS-ResidentialInstituteCode", "valueString": "AA" } } ] }{ "nhsNumber": "9999999999", "gpCode": "2750922,295", "gpTradingPartnerCode": "TES5", "healthcarePartyCode": "XX1", "freeText": "NOW AT THE ARTHUR ANDREWS CENTRE", "patches": [ { "op": "replace", "path": "/name/0/family", "value": "ROBINSON-PATTERSON" }, { "op": "add", "path": "/name/1/family", "value": "PATTERSON" }, { "op": "replace", "path": "/name/0/given/0", "value": "SALLY" }, { "op": "add", "path": "/name/0/given/1", "value": "JANE" }, { "op": "replace", "path": "/name/0/given/2", "value": "MARY KIMBERLY" }, { "op": "add", "path": "/name/0/prefix/0", "value": "MRS" }, { "op": "replace", "path": "/gender", "value": "unknown" }, { "op": "add", "path": "/birthDate", "value": "1980-05-23" }, { "op": "replace", "path": "/address/0/line/0", "value": "HOLLY COTTAGE" }, { "op": "add", "path": "/address/0/line/1", "value": "12 LONG LANE" }, { "op": "replace", "path": "/address/0/line/2", "value": "LITTLE HAMLET" }, { "op": "add", "path": "/address/0/line/3", "value": "BROMLEY" }, { "op": "replace", "path": "/address/0/line/4", "value": "KENT" }, { "op": "add", "path": "/address/0/postalCode", "value": "BR5 4ER" }, { "op": "replace", "path": "/extension/0", "value": { "url": "https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHAIS-DrugsDispensedMarker", "valueBoolean": "abc" } }, { "op": "add", "path": "/extension/0", "value": { "url": "https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHAIS-ResidentialInstituteCode", "valueString": "AA" } } ] }

Expected - 400 Actual Request - 202

srujan479 commented 4 years ago

Issue was with the incorrect payload which was sent in the API request.