agreenhalgh / spine-eps-tracker

https://nhsconnect.github.io/spine-eps-tracker/
Apache License 2.0
0 stars 0 forks source link

Some dates show False when not present, others empty string #7

Open agreenhalgh opened 5 years ago

agreenhalgh commented 5 years ago

IN the example below from INT the response includes: "prescriptionLastIssueDispensedDate" : "False", "prescriptionClaimedDate" : "", "prescriptionDispensedDate" : "False",

This seems inconsistent, and will cause some difficulty in parsing, notwithstanding that it probably ought to be null

{
   "5B507C-Y90206-061F9E" : {
      "dispensingPharmacy" : {
         "ods" : "",
         "address" : "",
         "name" : "",
         "phone" : ""
      },
      "pendingCancellations" : "False",
      "prescriptionLastIssueDispensedDate" : "False",
      "nominatedPharmacy" : {
         "ods" : "",
         "address" : "",
         "name" : "",
         "phone" : ""
      },
      "prescriptionStatus" : "With Dispenser",
      "prescriptionClaimedDate" : "",
      "patientNhsNumber" : "9990253129",
      "lineItems" : {
         "80D3E3C7-BD4C-AAFA-E050-D20AE3A26410" : {
            "quantity" : "5",
            "dosage" : "ONE to be taken THREE times a day",
            "uom" : "tablet",
            "itemStatus" : "With Dispenser",
            "description" : "Morphine 10mg tablets",
            "code" : "322708003"
         }
      },
      "lastEventDate" : "20190201114658",
      "prescriptionDispensedDate" : "False",
      "prescriptionDownloadDate" : "20190201114658",
      "epsVersion" : "R2",
      "repeatInstance" : {
         "totalAuthorised" : "1",
         "currentIssue" : "1"
      },
      "prescriber" : {
         "address" : "C/O NHS NPFIT,TEST DATA MANAGER, PRINCES EXCHANGE, PRINCES SQUARE, LS1 4HY",
         "ods" : "Y90206",
         "name" : "XXX DO NOT USE XXX TEST GP PRACTICE 14",
         "phone" : ""
      },
      "prescriptionIssueDate" : "20190131120100",
      "prescriptionTreatmentType" : "Acute Prescription"
   },
   "reason" : "",
   "version" : "1",
   "statusCode" : "0"
}