@awell-health/awell-extensions 1.0.108 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.d.ts +4 -0
- package/dist/extensions/healthie/actions/{applyTagToPatient.js → applyTagToPatient/applyTagToPatient.js} +6 -22
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.js.map +1 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js +33 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js.map +1 -0
- package/dist/extensions/healthie/actions/{applyTagToPatient.d.ts → applyTagToPatient/config/fields.d.ts} +2 -5
- package/dist/extensions/healthie/actions/applyTagToPatient/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/config/index.js +6 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/index.js +18 -0
- package/dist/extensions/healthie/actions/applyTagToPatient/index.js.map +1 -0
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.d.ts +4 -0
- package/dist/extensions/healthie/actions/{archivePatient.js → archivePatient/archivePatient.js} +6 -15
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.js.map +1 -0
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js +42 -0
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js.map +1 -0
- package/dist/extensions/healthie/actions/archivePatient/config/fields.d.ts +10 -0
- package/dist/extensions/healthie/actions/archivePatient/config/fields.js +14 -0
- package/dist/extensions/healthie/actions/archivePatient/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/archivePatient/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/archivePatient/config/index.js +6 -0
- package/dist/extensions/healthie/actions/archivePatient/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/archivePatient/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/archivePatient/index.js +18 -0
- package/dist/extensions/healthie/actions/archivePatient/index.js.map +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.d.ts +4 -0
- package/dist/extensions/healthie/actions/{assignPatientToGroup.js → assignPatientToGroup/assignPatientToGroup.js} +6 -22
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.js.map +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js +42 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js.map +1 -0
- package/dist/extensions/healthie/actions/{assignPatientToGroup.d.ts → assignPatientToGroup/config/fields.d.ts} +2 -5
- package/dist/extensions/healthie/actions/assignPatientToGroup/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/config/index.js +6 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/index.js +18 -0
- package/dist/extensions/healthie/actions/assignPatientToGroup/index.js.map +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.d.ts +4 -0
- package/dist/extensions/healthie/actions/{cancelAppointment.js → cancelAppointment/cancelAppointment.js} +6 -15
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.js.map +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js +37 -0
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js.map +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/config/fields.d.ts +10 -0
- package/dist/extensions/healthie/actions/cancelAppointment/config/fields.js +14 -0
- package/dist/extensions/healthie/actions/cancelAppointment/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/config/index.js +6 -0
- package/dist/extensions/healthie/actions/cancelAppointment/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/cancelAppointment/index.js +6 -0
- package/dist/extensions/healthie/actions/cancelAppointment/index.js.map +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.d.ts +4 -0
- package/dist/extensions/healthie/actions/{closeChatConversation.js → closeChatConversation/closeChatConversation.js} +6 -22
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.js.map +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js +38 -0
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js.map +1 -0
- package/dist/extensions/healthie/actions/{closeChatConversation.d.ts → closeChatConversation/config/fields.d.ts} +2 -5
- package/dist/extensions/healthie/actions/closeChatConversation/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/closeChatConversation/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/config/index.js +6 -0
- package/dist/extensions/healthie/actions/closeChatConversation/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/closeChatConversation/index.js +6 -0
- package/dist/extensions/healthie/actions/closeChatConversation/index.js.map +1 -0
- package/dist/extensions/healthie/actions/completeTask/completeTask.d.ts +4 -0
- package/dist/extensions/healthie/actions/{completeTask.js → completeTask/completeTask.js} +6 -15
- package/dist/extensions/healthie/actions/completeTask/completeTask.js.map +1 -0
- package/dist/extensions/healthie/actions/completeTask/completeTask.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/completeTask/completeTask.test.js +37 -0
- package/dist/extensions/healthie/actions/completeTask/completeTask.test.js.map +1 -0
- package/dist/extensions/healthie/actions/completeTask/config/fields.d.ts +10 -0
- package/dist/extensions/healthie/actions/completeTask/config/fields.js +14 -0
- package/dist/extensions/healthie/actions/completeTask/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/completeTask/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/completeTask/config/index.js +6 -0
- package/dist/extensions/healthie/actions/completeTask/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/completeTask/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/completeTask/index.js +6 -0
- package/dist/extensions/healthie/actions/completeTask/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createAppointment/config/dataPoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/createAppointment/config/dataPoints.js +10 -0
- package/dist/extensions/healthie/actions/createAppointment/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/{createAppointment.d.ts → createAppointment/config/fields.d.ts} +2 -11
- package/dist/extensions/healthie/actions/createAppointment/config/fields.js +41 -0
- package/dist/extensions/healthie/actions/createAppointment/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createAppointment/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/createAppointment/config/index.js +8 -0
- package/dist/extensions/healthie/actions/createAppointment/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.d.ts +4 -0
- package/dist/extensions/healthie/actions/{createAppointment.js → createAppointment/createAppointment.js} +7 -49
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.js.map +1 -0
- package/dist/extensions/healthie/actions/createAppointment/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createAppointment/index.js +6 -0
- package/dist/extensions/healthie/actions/createAppointment/index.js.map +1 -0
- package/dist/extensions/healthie/actions/{createChartingNote.d.ts → createChartingNote/config/fields.d.ts} +2 -5
- package/dist/extensions/healthie/actions/createChartingNote/config/fields.js +35 -0
- package/dist/extensions/healthie/actions/createChartingNote/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/config/index.js +6 -0
- package/dist/extensions/healthie/actions/createChartingNote/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.d.ts +4 -0
- package/dist/extensions/healthie/actions/{createChartingNote.js → createChartingNote/createChartingNote.js} +6 -36
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.js.map +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js +36 -0
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createChartingNote/index.js +6 -0
- package/dist/extensions/healthie/actions/createChartingNote/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/dataPoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/dataPoints.js +10 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/{createJournalEntry.d.ts → createJournalEntry/config/fields.d.ts} +2 -11
- package/dist/extensions/healthie/actions/createJournalEntry/config/fields.js +27 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/index.js +8 -0
- package/dist/extensions/healthie/actions/createJournalEntry/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.d.ts +4 -0
- package/dist/extensions/healthie/actions/{createJournalEntry.js → createJournalEntry/createJournalEntry.js} +7 -35
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.js.map +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js +34 -0
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/index.js +6 -0
- package/dist/extensions/healthie/actions/createJournalEntry/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createLocation/config/dataPoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/createLocation/config/dataPoints.js +10 -0
- package/dist/extensions/healthie/actions/createLocation/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/{createLocation.d.ts → createLocation/config/fields.d.ts} +2 -11
- package/dist/extensions/healthie/actions/createLocation/config/fields.js +57 -0
- package/dist/extensions/healthie/actions/createLocation/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createLocation/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/createLocation/config/index.js +8 -0
- package/dist/extensions/healthie/actions/createLocation/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createLocation/createLocation.d.ts +4 -0
- package/dist/extensions/healthie/actions/createLocation/createLocation.js +100 -0
- package/dist/extensions/healthie/actions/createLocation/createLocation.js.map +1 -0
- package/dist/extensions/healthie/actions/createLocation/createLocation.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createLocation/createLocation.test.js +39 -0
- package/dist/extensions/healthie/actions/createLocation/createLocation.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createLocation/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createLocation/index.js +6 -0
- package/dist/extensions/healthie/actions/createLocation/index.js.map +1 -0
- package/dist/extensions/healthie/actions/{createPatient.d.ts → createPatient/config/fields.d.ts} +2 -11
- package/dist/extensions/healthie/actions/createPatient/config/fields.js +59 -0
- package/dist/extensions/healthie/actions/createPatient/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createPatient/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createPatient/config/index.js +6 -0
- package/dist/extensions/healthie/actions/createPatient/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createPatient/createPatient.d.ts +11 -0
- package/dist/extensions/healthie/actions/{createPatient.js → createPatient/createPatient.js} +6 -60
- package/dist/extensions/healthie/actions/createPatient/createPatient.js.map +1 -0
- package/dist/extensions/healthie/actions/createPatient/createPatient.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createPatient/createPatient.test.js +43 -0
- package/dist/extensions/healthie/actions/createPatient/createPatient.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createPatient/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createPatient/index.js +6 -0
- package/dist/extensions/healthie/actions/createPatient/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createTask/config/dataPoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/createTask/config/dataPoints.js +10 -0
- package/dist/extensions/healthie/actions/createTask/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/{createTask.d.ts → createTask/config/fields.d.ts} +2 -11
- package/dist/extensions/healthie/actions/createTask/config/fields.js +64 -0
- package/dist/extensions/healthie/actions/createTask/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createTask/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/createTask/config/index.js +8 -0
- package/dist/extensions/healthie/actions/createTask/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createTask/createTask.d.ts +4 -0
- package/dist/extensions/healthie/actions/createTask/createTask.js +96 -0
- package/dist/extensions/healthie/actions/createTask/createTask.js.map +1 -0
- package/dist/extensions/healthie/actions/createTask/createTask.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createTask/createTask.test.js +245 -0
- package/dist/extensions/healthie/actions/createTask/createTask.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createTask/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createTask/index.js +6 -0
- package/dist/extensions/healthie/actions/createTask/index.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/config/fields.d.ts +10 -0
- package/dist/extensions/healthie/actions/deleteAppointment/config/fields.js +14 -0
- package/dist/extensions/healthie/actions/deleteAppointment/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/config/index.js +6 -0
- package/dist/extensions/healthie/actions/deleteAppointment/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.d.ts +4 -0
- package/dist/extensions/healthie/actions/{deleteAppointment.js → deleteAppointment/deleteAppointment.js} +6 -15
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js +34 -0
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteAppointment/index.js +6 -0
- package/dist/extensions/healthie/actions/deleteAppointment/index.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteTask/config/fields.d.ts +10 -0
- package/dist/extensions/healthie/actions/deleteTask/config/fields.js +14 -0
- package/dist/extensions/healthie/actions/deleteTask/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteTask/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteTask/config/index.js +6 -0
- package/dist/extensions/healthie/actions/deleteTask/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.d.ts +4 -0
- package/dist/extensions/healthie/actions/{deleteTask.js → deleteTask/deleteTask.js} +6 -15
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js +34 -0
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteTask/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteTask/index.js +6 -0
- package/dist/extensions/healthie/actions/deleteTask/index.js.map +1 -0
- package/dist/extensions/healthie/actions/getAppointment/config/dataPoints.d.ts +22 -0
- package/dist/extensions/healthie/actions/getAppointment/config/dataPoints.js +26 -0
- package/dist/extensions/healthie/actions/getAppointment/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/getAppointment/config/fields.d.ts +9 -0
- package/dist/extensions/healthie/actions/getAppointment/config/fields.js +13 -0
- package/dist/extensions/healthie/actions/getAppointment/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/getAppointment/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/getAppointment/config/index.js +8 -0
- package/dist/extensions/healthie/actions/getAppointment/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.d.ts +4 -0
- package/dist/extensions/healthie/actions/{getAppointment.js → getAppointment/getAppointment.js} +8 -38
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.js.map +1 -0
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js +83 -0
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js.map +1 -0
- package/dist/extensions/healthie/actions/getAppointment/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/getAppointment/index.js +6 -0
- package/dist/extensions/healthie/actions/getAppointment/index.js.map +1 -0
- package/dist/extensions/healthie/actions/{getPatient.d.ts → getPatient/config/dataPoints.d.ts} +1 -13
- package/dist/extensions/healthie/actions/getPatient/config/dataPoints.js +42 -0
- package/dist/extensions/healthie/actions/getPatient/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/getPatient/config/fields.d.ts +9 -0
- package/dist/extensions/healthie/actions/getPatient/config/fields.js +13 -0
- package/dist/extensions/healthie/actions/getPatient/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/getPatient/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/getPatient/config/index.js +8 -0
- package/dist/extensions/healthie/actions/getPatient/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/getPatient/getPatient.d.ts +4 -0
- package/dist/extensions/healthie/actions/{getPatient.js → getPatient/getPatient.js} +9 -55
- package/dist/extensions/healthie/actions/{getPatient.js.map → getPatient/getPatient.js.map} +1 -1
- package/dist/extensions/healthie/actions/getPatient/getPatient.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/getPatient/getPatient.test.js +235 -0
- package/dist/extensions/healthie/actions/getPatient/getPatient.test.js.map +1 -0
- package/dist/extensions/healthie/actions/getPatient/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/getPatient/index.js +18 -0
- package/dist/extensions/healthie/actions/getPatient/index.js.map +1 -0
- package/dist/extensions/healthie/actions/index.d.ts +8 -2
- package/dist/extensions/healthie/actions/index.js +4 -4
- package/dist/extensions/healthie/actions/index.js.map +1 -1
- package/dist/extensions/healthie/actions/{removeTagFromPatient.d.ts → removeTagFromPatient/config/fields.d.ts} +2 -5
- package/dist/extensions/healthie/actions/removeTagFromPatient/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/config/index.js +6 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/index.js +6 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/index.js.map +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.d.ts +4 -0
- package/dist/extensions/healthie/actions/{removeTagFromPatient.js → removeTagFromPatient/removeTagFromPatient.js} +6 -22
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.js.map +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js +33 -0
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js.map +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/dataPoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/dataPoints.js +10 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/{sendChatMessage.d.ts → sendChatMessage/config/fields.d.ts} +2 -11
- package/dist/extensions/healthie/actions/sendChatMessage/config/fields.js +28 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/index.js +8 -0
- package/dist/extensions/healthie/actions/sendChatMessage/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/index.js +6 -0
- package/dist/extensions/healthie/actions/sendChatMessage/index.js.map +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.d.ts +4 -0
- package/dist/extensions/healthie/actions/{sendChatMessage.js → sendChatMessage/sendChatMessage.js} +7 -36
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.js.map +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js +142 -0
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js.map +1 -0
- package/dist/extensions/healthie/actions/{sendFormCompletionRequest.d.ts → sendFormCompletionRequest/config/fields.d.ts} +2 -5
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/fields.js +77 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/index.js +6 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/index.js +6 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/index.js.map +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.d.ts +4 -0
- package/dist/extensions/healthie/actions/{sendFormCompletionRequest.js → sendFormCompletionRequest/sendFormCompletionRequest.js} +7 -79
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.js.map +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js +199 -0
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js.map +1 -0
- package/dist/extensions/healthie/actions/{updatePatient.d.ts → updatePatient/config/fields.d.ts} +2 -6
- package/dist/extensions/healthie/actions/updatePatient/config/fields.js +99 -0
- package/dist/extensions/healthie/actions/updatePatient/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatient/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/updatePatient/config/index.js +6 -0
- package/dist/extensions/healthie/actions/updatePatient/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatient/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/updatePatient/index.js +18 -0
- package/dist/extensions/healthie/actions/updatePatient/index.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.d.ts +4 -0
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.js +100 -0
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js +46 -0
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js.map +1 -0
- package/dist/extensions/healthie/graphqlClient.test.d.ts +1 -0
- package/dist/extensions/healthie/graphqlClient.test.js +63 -0
- package/dist/extensions/healthie/graphqlClient.test.js.map +1 -0
- package/package.json +5 -5
- package/dist/extensions/healthie/actions/applyTagToPatient.js.map +0 -1
- package/dist/extensions/healthie/actions/archivePatient.d.ts +0 -13
- package/dist/extensions/healthie/actions/archivePatient.js.map +0 -1
- package/dist/extensions/healthie/actions/assignPatientToGroup.js.map +0 -1
- package/dist/extensions/healthie/actions/cancelAppointment.d.ts +0 -13
- package/dist/extensions/healthie/actions/cancelAppointment.js.map +0 -1
- package/dist/extensions/healthie/actions/closeChatConversation.js.map +0 -1
- package/dist/extensions/healthie/actions/completeTask.d.ts +0 -13
- package/dist/extensions/healthie/actions/completeTask.js.map +0 -1
- package/dist/extensions/healthie/actions/createAppointment.js.map +0 -1
- package/dist/extensions/healthie/actions/createChartingNote.js.map +0 -1
- package/dist/extensions/healthie/actions/createJournalEntry.js.map +0 -1
- package/dist/extensions/healthie/actions/createLocation.js +0 -158
- package/dist/extensions/healthie/actions/createLocation.js.map +0 -1
- package/dist/extensions/healthie/actions/createPatient.js.map +0 -1
- package/dist/extensions/healthie/actions/createTask.js +0 -161
- package/dist/extensions/healthie/actions/createTask.js.map +0 -1
- package/dist/extensions/healthie/actions/deleteAppointment.d.ts +0 -13
- package/dist/extensions/healthie/actions/deleteAppointment.js.map +0 -1
- package/dist/extensions/healthie/actions/deleteTask.d.ts +0 -13
- package/dist/extensions/healthie/actions/deleteTask.js.map +0 -1
- package/dist/extensions/healthie/actions/getAppointment.d.ts +0 -34
- package/dist/extensions/healthie/actions/getAppointment.js.map +0 -1
- package/dist/extensions/healthie/actions/removeTagFromPatient.js.map +0 -1
- package/dist/extensions/healthie/actions/sendChatMessage.js.map +0 -1
- package/dist/extensions/healthie/actions/sendFormCompletionRequest.js.map +0 -1
- package/dist/extensions/healthie/actions/updatePatient.js +0 -194
- package/dist/extensions/healthie/actions/updatePatient.js.map +0 -1
@@ -1,158 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createLocation = void 0;
|
4
|
-
const lodash_1 = require("lodash");
|
5
|
-
const errors_1 = require("../errors");
|
6
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
|
-
const extensions_core_2 = require("@awell-health/extensions-core");
|
8
|
-
const sdk_1 = require("../gql/sdk");
|
9
|
-
const graphqlClient_1 = require("../graphqlClient");
|
10
|
-
const fields = {
|
11
|
-
id: {
|
12
|
-
id: 'id',
|
13
|
-
label: 'ID',
|
14
|
-
description: 'The id of the patient in Healthie.',
|
15
|
-
type: extensions_core_1.FieldType.STRING,
|
16
|
-
required: true,
|
17
|
-
},
|
18
|
-
name: {
|
19
|
-
id: 'name',
|
20
|
-
label: 'Name',
|
21
|
-
description: 'The name of the address.',
|
22
|
-
type: extensions_core_1.FieldType.STRING,
|
23
|
-
},
|
24
|
-
country: {
|
25
|
-
id: 'country',
|
26
|
-
label: 'Country',
|
27
|
-
description: 'The country of the patient.',
|
28
|
-
type: extensions_core_1.FieldType.STRING,
|
29
|
-
},
|
30
|
-
state: {
|
31
|
-
id: 'state',
|
32
|
-
label: 'State',
|
33
|
-
description: "The state patient's lives in.",
|
34
|
-
type: extensions_core_1.FieldType.STRING,
|
35
|
-
},
|
36
|
-
city: {
|
37
|
-
id: 'city',
|
38
|
-
label: 'City',
|
39
|
-
description: 'The city of the patient.',
|
40
|
-
type: extensions_core_1.FieldType.STRING,
|
41
|
-
},
|
42
|
-
zip: {
|
43
|
-
id: 'zip',
|
44
|
-
label: 'Zip code',
|
45
|
-
description: 'The zip code of the patient.',
|
46
|
-
type: extensions_core_1.FieldType.STRING,
|
47
|
-
},
|
48
|
-
line1: {
|
49
|
-
id: 'line1',
|
50
|
-
label: 'Line 1',
|
51
|
-
description: 'The line 1 of the address.',
|
52
|
-
type: extensions_core_1.FieldType.STRING,
|
53
|
-
required: true,
|
54
|
-
},
|
55
|
-
line2: {
|
56
|
-
id: 'line2',
|
57
|
-
label: 'Line 2',
|
58
|
-
description: 'The line 2 of the address.',
|
59
|
-
type: extensions_core_1.FieldType.STRING,
|
60
|
-
},
|
61
|
-
};
|
62
|
-
const dataPoints = {
|
63
|
-
locationId: {
|
64
|
-
key: 'locationId',
|
65
|
-
valueType: 'string',
|
66
|
-
},
|
67
|
-
};
|
68
|
-
exports.createLocation = {
|
69
|
-
key: 'createLocation',
|
70
|
-
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
71
|
-
title: 'Create location',
|
72
|
-
description: 'Create a location for a patient in Healthie.',
|
73
|
-
fields,
|
74
|
-
dataPoints,
|
75
|
-
previewable: true,
|
76
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
77
|
-
var _a, _b;
|
78
|
-
const { fields, settings } = payload;
|
79
|
-
const { id, name, country, state, city, zip, line1, line2 } = fields;
|
80
|
-
try {
|
81
|
-
if ((0, lodash_1.isNil)(id)) {
|
82
|
-
await onError({
|
83
|
-
events: [
|
84
|
-
{
|
85
|
-
date: new Date().toISOString(),
|
86
|
-
text: { en: 'Fields are missing' },
|
87
|
-
error: {
|
88
|
-
category: 'MISSING_FIELDS',
|
89
|
-
message: '`id` is missing',
|
90
|
-
},
|
91
|
-
},
|
92
|
-
],
|
93
|
-
});
|
94
|
-
return;
|
95
|
-
}
|
96
|
-
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
97
|
-
if (client !== undefined) {
|
98
|
-
const sdk = (0, sdk_1.getSdk)(client);
|
99
|
-
const { data } = await sdk.createLocation({
|
100
|
-
input: {
|
101
|
-
user_id: id,
|
102
|
-
name,
|
103
|
-
country,
|
104
|
-
state,
|
105
|
-
city,
|
106
|
-
zip,
|
107
|
-
line1,
|
108
|
-
line2,
|
109
|
-
},
|
110
|
-
});
|
111
|
-
const locationId = (_b = (_a = data.createLocation) === null || _a === void 0 ? void 0 : _a.location) === null || _b === void 0 ? void 0 : _b.id;
|
112
|
-
await onComplete({
|
113
|
-
data_points: {
|
114
|
-
locationId,
|
115
|
-
},
|
116
|
-
});
|
117
|
-
}
|
118
|
-
else {
|
119
|
-
await onError({
|
120
|
-
events: [
|
121
|
-
{
|
122
|
-
date: new Date().toISOString(),
|
123
|
-
text: { en: 'API client requires an API url and API key' },
|
124
|
-
error: {
|
125
|
-
category: 'MISSING_SETTINGS',
|
126
|
-
message: 'Missing api url or api key',
|
127
|
-
},
|
128
|
-
},
|
129
|
-
],
|
130
|
-
});
|
131
|
-
}
|
132
|
-
}
|
133
|
-
catch (err) {
|
134
|
-
if (err instanceof errors_1.HealthieError) {
|
135
|
-
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
136
|
-
await onError({
|
137
|
-
events: errors,
|
138
|
-
});
|
139
|
-
}
|
140
|
-
else {
|
141
|
-
const error = err;
|
142
|
-
await onError({
|
143
|
-
events: [
|
144
|
-
{
|
145
|
-
date: new Date().toISOString(),
|
146
|
-
text: { en: 'Healthie API reported an error' },
|
147
|
-
error: {
|
148
|
-
category: 'SERVER_ERROR',
|
149
|
-
message: error.message,
|
150
|
-
},
|
151
|
-
},
|
152
|
-
],
|
153
|
-
});
|
154
|
-
}
|
155
|
-
}
|
156
|
-
},
|
157
|
-
};
|
158
|
-
//# sourceMappingURL=createLocation.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createLocation.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/createLocation.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,sCAAqE;AACrE,mEAKsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAGnD,MAAM,MAAM,GAAG;IACb,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,K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Q,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createPatient.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/createPatient.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,mEAMsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAEnD,sCAAqE;AAErE,MAAM,MAAM,GAAG;IACb,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,gCAAgC;QAC7C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,2FAA2F;QAC7F,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EACT,gEAAgE;QAClE,IAAI,EAAE,2BAAS,CAAC,OAAO;KACxB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,mCAAmC;QAChD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI,EAAE,wFAAwF;KACzG;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,2BAAS,CAAC,MAA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ACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1,161 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createTask = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const zod_validation_error_1 = require("zod-validation-error");
|
6
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
|
-
const extensions_core_2 = require("@awell-health/extensions-core");
|
8
|
-
const sdk_1 = require("../gql/sdk");
|
9
|
-
const graphqlClient_1 = require("../graphqlClient");
|
10
|
-
const createTask_zod_1 = require("../validation/createTask.zod");
|
11
|
-
const errors_1 = require("../errors");
|
12
|
-
const fields = {
|
13
|
-
patientId: {
|
14
|
-
id: 'patientId',
|
15
|
-
label: 'Healthie patient ID',
|
16
|
-
description: 'The ID of the patient related to this task.',
|
17
|
-
type: extensions_core_1.FieldType.STRING,
|
18
|
-
},
|
19
|
-
assignToUserId: {
|
20
|
-
id: 'assignToUserId',
|
21
|
-
label: 'Assign to user',
|
22
|
-
description: 'The ID of the user to assign the task to. If none provided, will assign the task to the user the API key is associated with.',
|
23
|
-
type: extensions_core_1.FieldType.STRING,
|
24
|
-
},
|
25
|
-
content: {
|
26
|
-
id: 'content',
|
27
|
-
label: 'Content',
|
28
|
-
description: 'The content of the Task.',
|
29
|
-
type: extensions_core_1.FieldType.TEXT,
|
30
|
-
required: true,
|
31
|
-
},
|
32
|
-
dueDate: {
|
33
|
-
id: 'dueDate',
|
34
|
-
label: 'Due date',
|
35
|
-
description: 'The due date of the task.',
|
36
|
-
type: extensions_core_1.FieldType.DATE,
|
37
|
-
},
|
38
|
-
isReminderEnabled: {
|
39
|
-
id: 'isReminderEnabled',
|
40
|
-
label: 'Is reminder enabled',
|
41
|
-
description: 'Would you like to send reminders for this task?',
|
42
|
-
type: extensions_core_1.FieldType.BOOLEAN,
|
43
|
-
},
|
44
|
-
reminderIntervalType: {
|
45
|
-
id: 'reminderIntervalType',
|
46
|
-
label: 'Reminder interval type',
|
47
|
-
description: 'At what interval would you like to send reminders? The options are "daily", "weekly", "once".',
|
48
|
-
type: extensions_core_1.FieldType.STRING,
|
49
|
-
},
|
50
|
-
reminderIntervalValue: {
|
51
|
-
id: 'reminderIntervalValue',
|
52
|
-
label: 'Reminder interval value (weekly)',
|
53
|
-
description: 'When interval type is set to "daily" or "once", leave this field blank. For "weekly" interval, send in comma separated all lower-case days of the week (e.g wednesday, friday).',
|
54
|
-
type: extensions_core_1.FieldType.STRING,
|
55
|
-
required: false,
|
56
|
-
},
|
57
|
-
reminderIntervalValueOnce: {
|
58
|
-
id: 'reminderIntervalValueOnce',
|
59
|
-
label: 'Reminder interval value (once)',
|
60
|
-
description: 'When the interval type is set to "daily" or "weekly", leave this field blank. For "once" interval, set or select a date.',
|
61
|
-
type: extensions_core_1.FieldType.DATE,
|
62
|
-
required: false,
|
63
|
-
},
|
64
|
-
reminderTime: {
|
65
|
-
id: 'reminderTime',
|
66
|
-
label: 'Reminder time',
|
67
|
-
description: 'Time to send the reminder. Expressed in the number of minutes from midnight.',
|
68
|
-
type: extensions_core_1.FieldType.NUMERIC,
|
69
|
-
},
|
70
|
-
};
|
71
|
-
const dataPoints = {
|
72
|
-
taskId: {
|
73
|
-
key: 'taskId',
|
74
|
-
valueType: 'string',
|
75
|
-
},
|
76
|
-
};
|
77
|
-
exports.createTask = {
|
78
|
-
key: 'createTask',
|
79
|
-
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
80
|
-
title: 'Create task',
|
81
|
-
description: 'Create a new task in Healthie.',
|
82
|
-
fields,
|
83
|
-
dataPoints,
|
84
|
-
previewable: true,
|
85
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
86
|
-
var _a, _b;
|
87
|
-
const { fields, settings } = payload;
|
88
|
-
try {
|
89
|
-
const { patientId, assignToUserId, content, dueDate, reminder } = createTask_zod_1.createTaskSchema.parse(fields);
|
90
|
-
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
91
|
-
if (client !== undefined) {
|
92
|
-
const sdk = (0, sdk_1.getSdk)(client);
|
93
|
-
const { data } = await sdk.createTask({
|
94
|
-
client_id: patientId,
|
95
|
-
user_id: assignToUserId,
|
96
|
-
content,
|
97
|
-
due_date: dueDate,
|
98
|
-
reminder,
|
99
|
-
});
|
100
|
-
await onComplete({
|
101
|
-
data_points: {
|
102
|
-
taskId: (_b = (_a = data.createTask) === null || _a === void 0 ? void 0 : _a.task) === null || _b === void 0 ? void 0 : _b.id,
|
103
|
-
},
|
104
|
-
});
|
105
|
-
}
|
106
|
-
else {
|
107
|
-
await onError({
|
108
|
-
events: [
|
109
|
-
{
|
110
|
-
date: new Date().toISOString(),
|
111
|
-
text: { en: 'API client requires an API url and API key' },
|
112
|
-
error: {
|
113
|
-
category: 'MISSING_SETTINGS',
|
114
|
-
message: 'Missing api url or api key',
|
115
|
-
},
|
116
|
-
},
|
117
|
-
],
|
118
|
-
});
|
119
|
-
}
|
120
|
-
}
|
121
|
-
catch (err) {
|
122
|
-
if (err instanceof errors_1.HealthieError) {
|
123
|
-
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
124
|
-
await onError({
|
125
|
-
events: errors,
|
126
|
-
});
|
127
|
-
}
|
128
|
-
else if (err instanceof zod_1.ZodError) {
|
129
|
-
const error = (0, zod_validation_error_1.fromZodError)(err);
|
130
|
-
await onError({
|
131
|
-
events: [
|
132
|
-
{
|
133
|
-
date: new Date().toISOString(),
|
134
|
-
text: { en: error.message },
|
135
|
-
error: {
|
136
|
-
category: 'WRONG_INPUT',
|
137
|
-
message: error.message,
|
138
|
-
},
|
139
|
-
},
|
140
|
-
],
|
141
|
-
});
|
142
|
-
}
|
143
|
-
else {
|
144
|
-
const error = err;
|
145
|
-
await onError({
|
146
|
-
events: [
|
147
|
-
{
|
148
|
-
date: new Date().toISOString(),
|
149
|
-
text: { en: 'Healthie API reported an error' },
|
150
|
-
error: {
|
151
|
-
category: 'SERVER_ERROR',
|
152
|
-
message: error.message,
|
153
|
-
},
|
154
|
-
},
|
155
|
-
],
|
156
|
-
});
|
157
|
-
}
|
158
|
-
}
|
159
|
-
},
|
160
|
-
};
|
161
|
-
//# sourceMappingURL=createTask.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createTask.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/createTask.ts"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,+DAAmD;AACnD,mEAKsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAEnD,iEAA+D;AAC/D,sCAAqE;AAErE,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,cAAc,EAAE;QACd,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EACT,8HAA8H;QAChI,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,2BAA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AA;gBAC/B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;4BAC3B,KAAK,EAAE;gCACL,QAAQ,EAAE,aAAa;gCACvB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { FieldType, type Action } from '@awell-health/extensions-core';
|
2
|
-
import { type settings } from '../settings';
|
3
|
-
declare const fields: {
|
4
|
-
id: {
|
5
|
-
id: string;
|
6
|
-
label: string;
|
7
|
-
description: string;
|
8
|
-
type: FieldType.STRING;
|
9
|
-
required: true;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export declare const deleteAppointment: Action<typeof fields, typeof settings>;
|
13
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"deleteAppointment.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/deleteAppointment.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,sCAAqE;AACrE,mEAIsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAGnD,MAAM,MAAM,GAAG;IACb,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EA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E,EAAE,EAAE,EAAE,4CAA4C,EAAE;4BAC1D,KAAK,EAAE;gCACL,QAAQ,EAAE,kBAAkB;gCAC5B,OAAO,EAAE,4BAA4B;6BACtC;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { FieldType, type Action } from '@awell-health/extensions-core';
|
2
|
-
import { type settings } from '../settings';
|
3
|
-
declare const fields: {
|
4
|
-
id: {
|
5
|
-
id: string;
|
6
|
-
label: string;
|
7
|
-
description: string;
|
8
|
-
type: FieldType.STRING;
|
9
|
-
required: true;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export declare const deleteTask: Action<typeof fields, typeof settings>;
|
13
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"deleteTask.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/deleteTask.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,sCAAqE;AACrE,mEAIsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAGnD,MAAM,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,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,4CAA4C,EAAE;4BAC1D,KAAK,EAAE;gCACL,QAAQ,EAAE,kBAAkB;gCAC5B,OAAO,EAAE,4BAA4B;6BACtC;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { FieldType, type Action } from '@awell-health/extensions-core';
|
2
|
-
import { type settings } from '../settings';
|
3
|
-
declare const fields: {
|
4
|
-
appointmentId: {
|
5
|
-
id: string;
|
6
|
-
label: string;
|
7
|
-
description: string;
|
8
|
-
type: FieldType.STRING;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
declare const dataPoints: {
|
12
|
-
date: {
|
13
|
-
key: string;
|
14
|
-
valueType: "date";
|
15
|
-
};
|
16
|
-
appointmentTypeId: {
|
17
|
-
key: string;
|
18
|
-
valueType: "string";
|
19
|
-
};
|
20
|
-
appointmentTypeName: {
|
21
|
-
key: string;
|
22
|
-
valueType: "string";
|
23
|
-
};
|
24
|
-
contactType: {
|
25
|
-
key: string;
|
26
|
-
valueType: "string";
|
27
|
-
};
|
28
|
-
patientId: {
|
29
|
-
key: string;
|
30
|
-
valueType: "string";
|
31
|
-
};
|
32
|
-
};
|
33
|
-
export declare const getAppointment: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
|
34
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getAppointment.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/getAppointment.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AACtC,mEAAwD;AACxD,sCAAqE;AACrE,oCAAmC;AACnC,oDAAmD;AAEnD,iEAA0D;AAE1D,MAAM,MAAM,GAAG;IACb,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEjC,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,MAAM;KAClB;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,mBAAmB;QACxB,SAAS,EAAE,QAAQ;KACpB;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,qBAAqB;QAC1B,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,cAAc,GAIvB;IACF,GAAG,EAAE,gBAAgB;IACrB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,qDAAqD;IAClE,MAAM;IACN,UAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,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E;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"removeTagFromPatient.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/removeTagFromPatient.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,sCAAqE;AACrE,mEAIsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAGnD,MAAM,MAAM,GAAG;IACb,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,oBAAoB,GAA2C;IAC1E,GAAG,EAAE,sBAAsB;IAC3B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,2BA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F;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sendChatMessage.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/sendChatMessage.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,qCAA6C;AAC7C,mEAKsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAGnD,sCAAqE;AAErE,MAAM,MAAM,GAAG;IACb,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EACT,6EAA6E;QAC/E,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,iFAAiF;QACnF,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,0CAA0C;QAC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gCAC5B,OAAO,EAAE,4BAA4B;6BACtC;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sendFormCompletionRequest.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/sendFormCompletionRequest.ts"],"names":[],"mappings":";;;AAAA,sCAAqE;AACrE,mEAIsC;AACtC,mEAAwD;AACxD,oCAAmC;AACnC,oDAAmD;AAEnD,+FAA0E;AAC1E,mCAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EACT,wEAAwE;QAC1E,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,YAA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AAI,EAAE,EAAE,EAAE,EAAE,4CAA4C,EAAE;4BAC1D,KAAK,EAAE;gCACL,QAAQ,EAAE,kBAAkB;gCAC5B,OAAO,EAAE,4BAA4B;6BACtC;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -1,194 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updatePatient = void 0;
|
4
|
-
const lodash_1 = require("lodash");
|
5
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
|
-
const extensions_core_2 = require("@awell-health/extensions-core");
|
7
|
-
const sdk_1 = require("../gql/sdk");
|
8
|
-
const graphqlClient_1 = require("../graphqlClient");
|
9
|
-
const errors_1 = require("../errors");
|
10
|
-
const fields = {
|
11
|
-
id: {
|
12
|
-
id: 'id',
|
13
|
-
label: 'ID',
|
14
|
-
description: 'The id of the patient in Healthie.',
|
15
|
-
type: extensions_core_1.FieldType.STRING,
|
16
|
-
required: true,
|
17
|
-
},
|
18
|
-
first_name: {
|
19
|
-
id: 'first_name',
|
20
|
-
label: 'First name',
|
21
|
-
description: 'The first name of the patient.',
|
22
|
-
type: extensions_core_1.FieldType.STRING,
|
23
|
-
},
|
24
|
-
last_name: {
|
25
|
-
id: 'last_name',
|
26
|
-
label: 'Last name',
|
27
|
-
description: 'The last name of the patient.',
|
28
|
-
type: extensions_core_1.FieldType.STRING,
|
29
|
-
},
|
30
|
-
legal_name: {
|
31
|
-
id: 'legal_name',
|
32
|
-
label: 'Legal name',
|
33
|
-
description: "The patient's legal name which will be used in CMS 1500 Claims, Invoices, and Superbills.",
|
34
|
-
type: extensions_core_1.FieldType.STRING,
|
35
|
-
},
|
36
|
-
skipped_email: {
|
37
|
-
id: 'skipped_email',
|
38
|
-
label: 'Skipped email',
|
39
|
-
type: extensions_core_1.FieldType.BOOLEAN,
|
40
|
-
},
|
41
|
-
email: {
|
42
|
-
id: 'email',
|
43
|
-
label: 'Email',
|
44
|
-
description: 'The email address of the patient.',
|
45
|
-
type: extensions_core_1.FieldType.STRING,
|
46
|
-
stringType: extensions_core_1.StringType.EMAIL,
|
47
|
-
},
|
48
|
-
dob: {
|
49
|
-
id: 'dob',
|
50
|
-
label: 'Date of birth',
|
51
|
-
description: 'Date of birth of the patient',
|
52
|
-
type: extensions_core_1.FieldType.DATE,
|
53
|
-
},
|
54
|
-
phone_number: {
|
55
|
-
id: 'phone_number',
|
56
|
-
label: 'Phone number',
|
57
|
-
description: 'The phone number of the patient.',
|
58
|
-
type: extensions_core_1.FieldType.STRING,
|
59
|
-
stringType: extensions_core_1.StringType.PHONE,
|
60
|
-
},
|
61
|
-
provider_id: {
|
62
|
-
id: 'provider_id',
|
63
|
-
label: 'Provider ID',
|
64
|
-
description: 'This is the ID of the provider and defaults to the user the API key is associated with. Also known as the `dietitian_id`.',
|
65
|
-
type: extensions_core_1.FieldType.STRING,
|
66
|
-
},
|
67
|
-
user_group_id: {
|
68
|
-
id: 'user_group_id',
|
69
|
-
label: 'User group ID',
|
70
|
-
description: 'The user group the patient belongs to.',
|
71
|
-
type: extensions_core_1.FieldType.STRING,
|
72
|
-
},
|
73
|
-
active: {
|
74
|
-
id: 'active',
|
75
|
-
label: 'Active',
|
76
|
-
description: 'Whether the patient is still active.',
|
77
|
-
type: extensions_core_1.FieldType.BOOLEAN,
|
78
|
-
},
|
79
|
-
height: {
|
80
|
-
id: 'height',
|
81
|
-
label: 'Height',
|
82
|
-
description: 'The height of the patient.',
|
83
|
-
type: extensions_core_1.FieldType.STRING,
|
84
|
-
},
|
85
|
-
gender: {
|
86
|
-
id: 'gender',
|
87
|
-
label: 'Gender',
|
88
|
-
description: 'The gender of the patient. Either "Female", "Male", or "Other".',
|
89
|
-
type: extensions_core_1.FieldType.STRING,
|
90
|
-
},
|
91
|
-
gender_identity: {
|
92
|
-
id: 'gender_identity',
|
93
|
-
label: 'Gender identity',
|
94
|
-
description: 'Should only be passed when gender is "Other"',
|
95
|
-
type: extensions_core_1.FieldType.STRING,
|
96
|
-
},
|
97
|
-
sex: {
|
98
|
-
id: 'sex',
|
99
|
-
label: 'Sex',
|
100
|
-
description: 'The sex of the patient. Either "Female", "Male".',
|
101
|
-
type: extensions_core_1.FieldType.STRING,
|
102
|
-
},
|
103
|
-
};
|
104
|
-
exports.updatePatient = {
|
105
|
-
key: 'updatePatient',
|
106
|
-
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
107
|
-
title: 'Update a patient',
|
108
|
-
description: 'Update a patient in Healthie.',
|
109
|
-
fields,
|
110
|
-
previewable: true,
|
111
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
112
|
-
const { fields, settings } = payload;
|
113
|
-
const { id, first_name, last_name, legal_name, email, phone_number, provider_id, gender, gender_identity, height, sex, user_group_id, active, dob, skipped_email, } = fields;
|
114
|
-
try {
|
115
|
-
if ((0, lodash_1.isNil)(id)) {
|
116
|
-
await onError({
|
117
|
-
events: [
|
118
|
-
{
|
119
|
-
date: new Date().toISOString(),
|
120
|
-
text: { en: 'Fields are missing' },
|
121
|
-
error: {
|
122
|
-
category: 'MISSING_FIELDS',
|
123
|
-
message: '`id` is missing',
|
124
|
-
},
|
125
|
-
},
|
126
|
-
],
|
127
|
-
});
|
128
|
-
return;
|
129
|
-
}
|
130
|
-
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
131
|
-
if (client !== undefined) {
|
132
|
-
const sdk = (0, sdk_1.getSdk)(client);
|
133
|
-
await sdk.updatePatient({
|
134
|
-
input: {
|
135
|
-
id,
|
136
|
-
first_name,
|
137
|
-
last_name,
|
138
|
-
legal_name,
|
139
|
-
email,
|
140
|
-
phone_number,
|
141
|
-
dietitian_id: provider_id === '' ? undefined : provider_id,
|
142
|
-
gender,
|
143
|
-
gender_identity,
|
144
|
-
height,
|
145
|
-
sex,
|
146
|
-
user_group_id,
|
147
|
-
active,
|
148
|
-
dob,
|
149
|
-
skipped_email,
|
150
|
-
},
|
151
|
-
});
|
152
|
-
await onComplete();
|
153
|
-
}
|
154
|
-
else {
|
155
|
-
await onError({
|
156
|
-
events: [
|
157
|
-
{
|
158
|
-
date: new Date().toISOString(),
|
159
|
-
text: { en: 'API client requires an API url and API key' },
|
160
|
-
error: {
|
161
|
-
category: 'MISSING_SETTINGS',
|
162
|
-
message: 'Missing api url or api key',
|
163
|
-
},
|
164
|
-
},
|
165
|
-
],
|
166
|
-
});
|
167
|
-
}
|
168
|
-
}
|
169
|
-
catch (err) {
|
170
|
-
if (err instanceof errors_1.HealthieError) {
|
171
|
-
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
172
|
-
await onError({
|
173
|
-
events: errors,
|
174
|
-
});
|
175
|
-
}
|
176
|
-
else {
|
177
|
-
const error = err;
|
178
|
-
await onError({
|
179
|
-
events: [
|
180
|
-
{
|
181
|
-
date: new Date().toISOString(),
|
182
|
-
text: { en: 'Healthie API reported an error' },
|
183
|
-
error: {
|
184
|
-
category: 'SERVER_ERROR',
|
185
|
-
message: error.message,
|
186
|
-
},
|
187
|
-
},
|
188
|
-
],
|
189
|
-
});
|
190
|
-
}
|
191
|
-
}
|
192
|
-
},
|
193
|
-
};
|
194
|
-
//# sourceMappingURL=updatePatient.js.map
|