Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Medication - record creation; #50

Open
dkryvosheya opened this issue Aug 4, 2017 · 4 comments
Open

Medication - record creation; #50

dkryvosheya opened this issue Aug 4, 2017 · 4 comments

Comments

@dkryvosheya
Copy link

Hi, @robtweed!

We've updated the creation of new medications record, we're getting 200 - medication saved response (http:https://prntscr.com/g47aym, http:https://prntscr.com/g47bb6) but the list of records is not being updated for some reason: http:https://prntscr.com/g47bg4;

@robtweed
Copy link
Collaborator

robtweed commented Aug 4, 2017

You're still not sending startDate and startTime properly. The UI used to do this correctly. The startDate should be in JavaScript getTime() format, representing the day at midnight. The startTime should be the number of milliseconds since midnight. Instead you're sending:

startDate: "2017-08-04T13:34:02.407Z"
startTime: "2017-08-04T13:34:43.020Z"

Which causes the middle tier to send "invalid date" to Ethercis for the date field, which results in an unexpected error response

the middle tier should not return a 200 - not sure why. However, the error is caused by the wrongly-formatted fields

It should be more like this:

"startDate": 1498474242000,
"startTime": 39042000,

@dkryvosheya
Copy link
Author

dkryvosheya commented Aug 9, 2017

Hi, @robtweed - here's the payload: http:https://prntscr.com/g68w52; Still, the record list is not being updated; I think, it still need your attention in this case.

@PhilBarrett
Copy link

Hi @robtweed @dkryvosheya is there an update on this issue please. I've tried recording medications on 9999999033 but still no joy.

@tony-shannon
Copy link
Contributor

@PhilBarrett could you help retest this one please?
thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Development

No branches or pull requests

4 participants