Skwerl / hs-util

0 stars 0 forks source link

CCD Export: Include the medication start date in export #21

Closed ejancic closed 11 years ago

ejancic commented 11 years ago

It looks like we are using the MEDDATES to track the start date for medications which is one of the fields the tests are asking us to keep track of. Currently this field is set to 12/31/1969.

Populate this field with the date that gets sent in the createdAt field for the medication object. Sample JSON below.

[ { "drug": { "rcopiaId": null, "ndcid": "00071015540", "brandName": "Lipitor", "genericName": "atorvastatin calcium", "fullDescription": null, "brandType": null, "form": "Tablet", "strength": "10 mg", "routeCode": "PO", "rxNormType": null, "rxNormId": "617314", "drugGroup": null }, "note": [], "patientPrescription": [ { "prescribe": { "prescribeIdentity": "ca4c9389-4bce-424d-911a-795365dcd66a", "patientIdentity": "6a66086c-832b-4882-a2a0-22382e807eb6", "patientExternalIdentity": "replace me", "pharmacyIdentity": "", "hasScheduledDrug": false, "stopDate": null, "addToMedicationList": true, "sig": { "drug": { "rcopiaId": null, "ndcid": "00071015540", "brandName": "Lipitor", "genericName": "atorvastatin calcium", "fullDescription": null, "brandType": null, "form": "Tablet", "strength": "10 mg", "routeCode": "PO", "rxNormType": null, "rxNormId": "617314", "drugGroup": null }, "action": "Apply", "dose": "1", "doseUnit": "tablet", "route": "PO", "doseTiming": "once a day", "doseOther": null, "duration": "7 days", "quantity": "14", "quantityUnits": "tablets", "refills": "2", "substitutionPermitted": true, "otherNotes": "Other Notes", "patientNotes": "Patient Notes", "comments": "Comments", "schedule": null, "writtenDate": null, "effectiveDate": null, "lastFillDate": null, "soldDate": null }, "checkId": null, "signaturePassword": "1234", "prescriberOrderNumber": null, "rxReferenceNumber": null, "formularyNote": null, "interactionNote": null, "allergyReaction": null, "interactionReaction": null, "drugInteractionCheckPerformed": false, "icd9": null, "ePrescribe": false, "createdBy": "2e9baa80-c1be-4cff-bc5b-61c8ddc4e4f4", "createdByFirstName": "chuck", "createdByLastName": "norris" }, "createdAt": "2013-04-01T16:51:52.551-07:00", "createdBy": "2e9baa80-c1be-4cff-bc5b-61c8ddc4e4f4", "active": true } ], "active": true, "source": "SOCIAL_CARE", "education": [ "http://www.rxlist.com/lipitor-drug.htm" ] } ]

ejancic commented 11 years ago

verified