When using the pulsetile-react-admin package on top of the QEWD HIT Platform (https://github.com/robtweed/qewd-hit-platform), I experienced an issue around edit of Medications whereby I would receive an invocation error of:
{"error":"#1.0.0 Invocation exception to method:create:java.lang.IllegalArgumentException: Could not convert JSON map:com.marand.thinkehr.a.b: Unable to convert value to DateTime: Invalid date (path: medication_statement_list/medication_and_medical_devices/medication_order:0/order:0/order_details/order_start_date_time)","path":"/api/patients/:patientId/:heading"}
This error also occurred in RippleOSI/Ripple-Showcase-Stack-Project#75
I have fixed the issue locally by changing the dataProviders file (https://github.com/PulseTile/PulseTile-RA-Lerna/blob/master/packages/pulsetile-react-admin/src/dataProviders/dataProvider.js)
if (resource === 'medications') {
let startDate = get(params, 'data.startDate', null);
let dateCreated = get(params, 'data.dateCreated', null);
updateData.dateCreated = moment(dateCreated).format('DD-MM-YYYY');
updateData.startDate = moment(startDate).format('YYYY-MM-DD');
}
I'm not sure why this issue isn't experienced on the QEWD-Courier implementation. I would greatly appreciate if you could test this fix on your next commit before incorporating.
When using the pulsetile-react-admin package on top of the QEWD HIT Platform (https://github.com/robtweed/qewd-hit-platform), I experienced an issue around edit of Medications whereby I would receive an invocation error of:
{"error":"#1.0.0 Invocation exception to method:create:java.lang.IllegalArgumentException: Could not convert JSON map:com.marand.thinkehr.a.b: Unable to convert value to DateTime: Invalid date (path: medication_statement_list/medication_and_medical_devices/medication_order:0/order:0/order_details/order_start_date_time)","path":"/api/patients/:patientId/:heading"}This error also occurred in RippleOSI/Ripple-Showcase-Stack-Project#75
I have fixed the issue locally by changing the dataProviders file (https://github.com/PulseTile/PulseTile-RA-Lerna/blob/master/packages/pulsetile-react-admin/src/dataProviders/dataProvider.js)
I'm not sure why this issue isn't experienced on the QEWD-Courier implementation. I would greatly appreciate if you could test this fix on your next commit before incorporating.