@awell-health/awell-extensions 1.0.109 → 1.0.111
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/calDotCom/actions/createBooking/createBooking.js +1 -1
- package/dist/extensions/calDotCom/actions/createBooking/createBooking.js.map +1 -1
- 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 +1 -1
- 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
@@ -0,0 +1,100 @@
|
|
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 sdk_1 = require("../../gql/sdk");
|
8
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
9
|
+
const config_1 = require("./config");
|
10
|
+
exports.createLocation = {
|
11
|
+
key: 'createLocation',
|
12
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
13
|
+
title: 'Create location',
|
14
|
+
description: 'Create a location for a patient in Healthie.',
|
15
|
+
fields: config_1.fields,
|
16
|
+
dataPoints: config_1.dataPoints,
|
17
|
+
previewable: true,
|
18
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
19
|
+
var _a, _b;
|
20
|
+
const { fields, settings } = payload;
|
21
|
+
const { id, name, country, state, city, zip, line1, line2 } = fields;
|
22
|
+
try {
|
23
|
+
if ((0, lodash_1.isNil)(id)) {
|
24
|
+
await onError({
|
25
|
+
events: [
|
26
|
+
{
|
27
|
+
date: new Date().toISOString(),
|
28
|
+
text: { en: 'Fields are missing' },
|
29
|
+
error: {
|
30
|
+
category: 'MISSING_FIELDS',
|
31
|
+
message: '`id` is missing',
|
32
|
+
},
|
33
|
+
},
|
34
|
+
],
|
35
|
+
});
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
39
|
+
if (client !== undefined) {
|
40
|
+
const sdk = (0, sdk_1.getSdk)(client);
|
41
|
+
const { data } = await sdk.createLocation({
|
42
|
+
input: {
|
43
|
+
user_id: id,
|
44
|
+
name,
|
45
|
+
country,
|
46
|
+
state,
|
47
|
+
city,
|
48
|
+
zip,
|
49
|
+
line1,
|
50
|
+
line2,
|
51
|
+
},
|
52
|
+
});
|
53
|
+
const locationId = (_b = (_a = data.createLocation) === null || _a === void 0 ? void 0 : _a.location) === null || _b === void 0 ? void 0 : _b.id;
|
54
|
+
await onComplete({
|
55
|
+
data_points: {
|
56
|
+
locationId,
|
57
|
+
},
|
58
|
+
});
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
await onError({
|
62
|
+
events: [
|
63
|
+
{
|
64
|
+
date: new Date().toISOString(),
|
65
|
+
text: { en: 'API client requires an API url and API key' },
|
66
|
+
error: {
|
67
|
+
category: 'MISSING_SETTINGS',
|
68
|
+
message: 'Missing api url or api key',
|
69
|
+
},
|
70
|
+
},
|
71
|
+
],
|
72
|
+
});
|
73
|
+
}
|
74
|
+
}
|
75
|
+
catch (err) {
|
76
|
+
if (err instanceof errors_1.HealthieError) {
|
77
|
+
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
78
|
+
await onError({
|
79
|
+
events: errors,
|
80
|
+
});
|
81
|
+
}
|
82
|
+
else {
|
83
|
+
const error = err;
|
84
|
+
await onError({
|
85
|
+
events: [
|
86
|
+
{
|
87
|
+
date: new Date().toISOString(),
|
88
|
+
text: { en: 'Healthie API reported an error' },
|
89
|
+
error: {
|
90
|
+
category: 'SERVER_ERROR',
|
91
|
+
message: error.message,
|
92
|
+
},
|
93
|
+
},
|
94
|
+
],
|
95
|
+
});
|
96
|
+
}
|
97
|
+
}
|
98
|
+
},
|
99
|
+
};
|
100
|
+
//# sourceMappingURL=createLocation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createLocation.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createLocation/createLocation.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tests_1 = require("../../../../src/tests");
|
4
|
+
const sdk_1 = require("../../gql/sdk");
|
5
|
+
const sdk_2 = require("../../gql/__mocks__/sdk");
|
6
|
+
const createLocation_1 = require("../createLocation");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('createLocation action', () => {
|
10
|
+
const onComplete = jest.fn();
|
11
|
+
beforeAll(() => {
|
12
|
+
;
|
13
|
+
sdk_1.getSdk.mockImplementation(sdk_2.mockGetSdk);
|
14
|
+
});
|
15
|
+
beforeEach(() => {
|
16
|
+
jest.clearAllMocks();
|
17
|
+
});
|
18
|
+
test('Should create a location', async () => {
|
19
|
+
await createLocation_1.createLocation.onActivityCreated((0, tests_1.generateTestPayload)({
|
20
|
+
fields: {
|
21
|
+
id: 'patient-1',
|
22
|
+
name: 'Test location',
|
23
|
+
country: '',
|
24
|
+
state: '',
|
25
|
+
city: '',
|
26
|
+
zip: '',
|
27
|
+
line1: '',
|
28
|
+
line2: '',
|
29
|
+
},
|
30
|
+
settings: {
|
31
|
+
apiKey: 'apiKey',
|
32
|
+
apiUrl: 'test-url',
|
33
|
+
},
|
34
|
+
}), onComplete, jest.fn());
|
35
|
+
expect(sdk_2.mockGetSdkReturn.createLocation).toHaveBeenCalled();
|
36
|
+
expect(onComplete).toHaveBeenCalled();
|
37
|
+
});
|
38
|
+
});
|
39
|
+
//# sourceMappingURL=createLocation.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createLocation.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createLocation/createLocation.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,sDAAkD;AAElD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,CAAC;QAAC,YAAoB,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;QAC1C,MAAM,+BAAc,CAAC,iBAAiB,CACpC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,EAAE,EAAE,WAAW;gBACf,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,EAAE;gBACR,GAAG,EAAE,EAAE;gBACP,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,EAAE;aACV;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;aACnB;SACF,CAAC,EACF,UAAU,EACV,IAAI,CAAC,EAAE,EAAE,CACV,CAAA;QAED,MAAM,CAAC,sBAAgB,CAAC,cAAc,CAAC,CAAC,gBAAgB,EAAE,CAAA;QAC1D,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { createLocation } from './createLocation';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createLocation = void 0;
|
4
|
+
var createLocation_1 = require("./createLocation");
|
5
|
+
Object.defineProperty(exports, "createLocation", { enumerable: true, get: function () { return createLocation_1.createLocation; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createLocation/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,gHAAA,cAAc,OAAA"}
|
package/dist/extensions/healthie/actions/{createPatient.d.ts → createPatient/config/fields.d.ts}
RENAMED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { FieldType, StringType
|
2
|
-
|
3
|
-
declare const fields: {
|
1
|
+
import { FieldType, StringType } from '@awell-health/extensions-core';
|
2
|
+
export declare const fields: {
|
4
3
|
first_name: {
|
5
4
|
id: string;
|
6
5
|
label: string;
|
@@ -54,11 +53,3 @@ declare const fields: {
|
|
54
53
|
type: FieldType.STRING;
|
55
54
|
};
|
56
55
|
};
|
57
|
-
declare const dataPoints: {
|
58
|
-
healthiePatientId: {
|
59
|
-
key: string;
|
60
|
-
valueType: "string";
|
61
|
-
};
|
62
|
-
};
|
63
|
-
export declare const createPatient: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
|
64
|
-
export {};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fields = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
exports.fields = {
|
6
|
+
first_name: {
|
7
|
+
id: 'first_name',
|
8
|
+
label: 'First name',
|
9
|
+
description: 'The first name of the patient.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: true,
|
12
|
+
},
|
13
|
+
last_name: {
|
14
|
+
id: 'last_name',
|
15
|
+
label: 'Last name',
|
16
|
+
description: 'The last name of the patient.',
|
17
|
+
type: extensions_core_1.FieldType.STRING,
|
18
|
+
required: true,
|
19
|
+
},
|
20
|
+
legal_name: {
|
21
|
+
id: 'legal_name',
|
22
|
+
label: 'Legal name',
|
23
|
+
description: "The patient's legal name which will be used in CMS 1500 Claims, Invoices, and Superbills.",
|
24
|
+
type: extensions_core_1.FieldType.STRING,
|
25
|
+
},
|
26
|
+
skipped_email: {
|
27
|
+
id: 'skipped_email',
|
28
|
+
label: 'Skipped email.',
|
29
|
+
description: 'When disabled, an email is not required to create the patient.',
|
30
|
+
type: extensions_core_1.FieldType.BOOLEAN,
|
31
|
+
},
|
32
|
+
email: {
|
33
|
+
id: 'email',
|
34
|
+
label: 'Email',
|
35
|
+
description: 'The email address of the patient.',
|
36
|
+
type: extensions_core_1.FieldType.STRING,
|
37
|
+
required: true, // required until conditional field validation is implemented (based on `skipped_email`)
|
38
|
+
},
|
39
|
+
phone_number: {
|
40
|
+
id: 'phone_number',
|
41
|
+
label: 'Phone number',
|
42
|
+
description: 'The phone number of the patient.',
|
43
|
+
type: extensions_core_1.FieldType.STRING,
|
44
|
+
stringType: extensions_core_1.StringType.PHONE,
|
45
|
+
},
|
46
|
+
send_invite: {
|
47
|
+
id: 'send_invite',
|
48
|
+
label: 'Send invite email',
|
49
|
+
description: 'Whether an invite email should be sent to the newly created patient.',
|
50
|
+
type: extensions_core_1.FieldType.BOOLEAN,
|
51
|
+
},
|
52
|
+
provider_id: {
|
53
|
+
id: 'provider_id',
|
54
|
+
label: 'Provider ID',
|
55
|
+
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`.',
|
56
|
+
type: extensions_core_1.FieldType.STRING,
|
57
|
+
},
|
58
|
+
};
|
59
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createPatient/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAIsC;AAEzB,QAAA,MAAM,GAAG;IACpB,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,MAAM;QACtB,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EACT,sEAAsE;QACxE,IAAI,EAAE,2BAAS,CAAC,OAAO;KACxB;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,2HAA2H;QAC7H,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { fields } from './fields';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fields = void 0;
|
4
|
+
var fields_1 = require("./fields");
|
5
|
+
Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createPatient/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type Action } from '@awell-health/extensions-core';
|
2
|
+
import { type settings } from '../../settings';
|
3
|
+
import { fields } from './config';
|
4
|
+
declare const dataPoints: {
|
5
|
+
healthiePatientId: {
|
6
|
+
key: string;
|
7
|
+
valueType: "string";
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export declare const createPatient: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
|
11
|
+
export {};
|
package/dist/extensions/healthie/actions/{createPatient.js → createPatient/createPatient.js}
RENAMED
@@ -3,64 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createPatient = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
5
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const fields = {
|
11
|
-
first_name: {
|
12
|
-
id: 'first_name',
|
13
|
-
label: 'First name',
|
14
|
-
description: 'The first name of the patient.',
|
15
|
-
type: extensions_core_1.FieldType.STRING,
|
16
|
-
required: true,
|
17
|
-
},
|
18
|
-
last_name: {
|
19
|
-
id: 'last_name',
|
20
|
-
label: 'Last name',
|
21
|
-
description: 'The last name of the patient.',
|
22
|
-
type: extensions_core_1.FieldType.STRING,
|
23
|
-
required: true,
|
24
|
-
},
|
25
|
-
legal_name: {
|
26
|
-
id: 'legal_name',
|
27
|
-
label: 'Legal name',
|
28
|
-
description: "The patient's legal name which will be used in CMS 1500 Claims, Invoices, and Superbills.",
|
29
|
-
type: extensions_core_1.FieldType.STRING,
|
30
|
-
},
|
31
|
-
skipped_email: {
|
32
|
-
id: 'skipped_email',
|
33
|
-
label: 'Skipped email.',
|
34
|
-
description: 'When disabled, an email is not required to create the patient.',
|
35
|
-
type: extensions_core_1.FieldType.BOOLEAN,
|
36
|
-
},
|
37
|
-
email: {
|
38
|
-
id: 'email',
|
39
|
-
label: 'Email',
|
40
|
-
description: 'The email address of the patient.',
|
41
|
-
type: extensions_core_1.FieldType.STRING,
|
42
|
-
required: true, // required until conditional field validation is implemented (based on `skipped_email`)
|
43
|
-
},
|
44
|
-
phone_number: {
|
45
|
-
id: 'phone_number',
|
46
|
-
label: 'Phone number',
|
47
|
-
description: 'The phone number of the patient.',
|
48
|
-
type: extensions_core_1.FieldType.STRING,
|
49
|
-
stringType: extensions_core_1.StringType.PHONE,
|
50
|
-
},
|
51
|
-
send_invite: {
|
52
|
-
id: 'send_invite',
|
53
|
-
label: 'Send invite email',
|
54
|
-
description: 'Whether an invite email should be sent to the newly created patient.',
|
55
|
-
type: extensions_core_1.FieldType.BOOLEAN,
|
56
|
-
},
|
57
|
-
provider_id: {
|
58
|
-
id: 'provider_id',
|
59
|
-
label: 'Provider ID',
|
60
|
-
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`.',
|
61
|
-
type: extensions_core_1.FieldType.STRING,
|
62
|
-
},
|
63
|
-
};
|
6
|
+
const sdk_1 = require("../../gql/sdk");
|
7
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
8
|
+
const errors_1 = require("../../errors");
|
9
|
+
const config_1 = require("./config");
|
64
10
|
const dataPoints = {
|
65
11
|
healthiePatientId: {
|
66
12
|
key: 'healthiePatientId',
|
@@ -69,10 +15,10 @@ const dataPoints = {
|
|
69
15
|
};
|
70
16
|
exports.createPatient = {
|
71
17
|
key: 'createPatient',
|
72
|
-
category:
|
18
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
73
19
|
title: 'Create a patient',
|
74
20
|
description: 'Create a patient in Healthie.',
|
75
|
-
fields,
|
21
|
+
fields: config_1.fields,
|
76
22
|
dataPoints,
|
77
23
|
previewable: true,
|
78
24
|
onActivityCreated: async (payload, onComplete, onError) => {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createPatient.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createPatient/createPatient.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tests_1 = require("../../../../src/tests");
|
4
|
+
const sdk_1 = require("../../gql/sdk");
|
5
|
+
const sdk_2 = require("../../gql/__mocks__/sdk");
|
6
|
+
const createPatient_1 = require("../createPatient");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('createPatient action', () => {
|
10
|
+
const onComplete = jest.fn();
|
11
|
+
beforeAll(() => {
|
12
|
+
const mockSdk = sdk_1.getSdk;
|
13
|
+
mockSdk.mockImplementation(sdk_2.mockGetSdk);
|
14
|
+
});
|
15
|
+
beforeEach(() => {
|
16
|
+
jest.clearAllMocks();
|
17
|
+
});
|
18
|
+
test('Should create a new patient', async () => {
|
19
|
+
await createPatient_1.createPatient.onActivityCreated((0, tests_1.generateTestPayload)({
|
20
|
+
fields: {
|
21
|
+
first_name: 'test',
|
22
|
+
last_name: 'test',
|
23
|
+
legal_name: undefined,
|
24
|
+
email: 'test@test.com',
|
25
|
+
phone_number: undefined,
|
26
|
+
provider_id: undefined,
|
27
|
+
skipped_email: undefined,
|
28
|
+
send_invite: undefined,
|
29
|
+
},
|
30
|
+
settings: {
|
31
|
+
apiKey: 'apiKey',
|
32
|
+
apiUrl: 'test-url',
|
33
|
+
},
|
34
|
+
}), onComplete, jest.fn());
|
35
|
+
expect(sdk_2.mockGetSdkReturn.createPatient).toHaveBeenCalled();
|
36
|
+
expect(onComplete).toHaveBeenCalledWith({
|
37
|
+
data_points: {
|
38
|
+
healthiePatientId: 'patient-1',
|
39
|
+
},
|
40
|
+
});
|
41
|
+
});
|
42
|
+
});
|
43
|
+
//# sourceMappingURL=createPatient.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createPatient.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createPatient/createPatient.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,oDAAgD;AAEhD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,YAAmB,CAAA;QACnC,OAAO,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,6BAAa,CAAC,iBAAiB,CACnC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,UAAU,EAAE,MAAM;gBAClB,SAAS,EAAE,MAAM;gBACjB,UAAU,EAAE,SAAS;gBACrB,KAAK,EAAE,eAAe;gBACtB,YAAY,EAAE,SAAS;gBACvB,WAAW,EAAE,SAAS;gBACtB,aAAa,EAAE,SAAS;gBACxB,WAAW,EAAE,SAAS;aACvB;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;aACnB;SACF,CAAC,EACF,UAAU,EACV,IAAI,CAAC,EAAE,EAAE,CACV,CAAA;QAED,MAAM,CAAC,sBAAgB,CAAC,aAAa,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACzD,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC;YACtC,WAAW,EAAE;gBACX,iBAAiB,EAAE,WAAW;aAC/B;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { createPatient } from './createPatient';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createPatient = void 0;
|
4
|
+
var createPatient_1 = require("./createPatient");
|
5
|
+
Object.defineProperty(exports, "createPatient", { enumerable: true, get: function () { return createPatient_1.createPatient; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createPatient/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,8GAAA,aAAa,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createTask/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { FieldType
|
2
|
-
|
3
|
-
declare const fields: {
|
1
|
+
import { FieldType } from '@awell-health/extensions-core';
|
2
|
+
export declare const fields: {
|
4
3
|
patientId: {
|
5
4
|
id: string;
|
6
5
|
label: string;
|
@@ -59,11 +58,3 @@ declare const fields: {
|
|
59
58
|
type: FieldType.NUMERIC;
|
60
59
|
};
|
61
60
|
};
|
62
|
-
declare const dataPoints: {
|
63
|
-
taskId: {
|
64
|
-
key: string;
|
65
|
-
valueType: "string";
|
66
|
-
};
|
67
|
-
};
|
68
|
-
export declare const createTask: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
|
69
|
-
export {};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fields = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
exports.fields = {
|
6
|
+
patientId: {
|
7
|
+
id: 'patientId',
|
8
|
+
label: 'Healthie patient ID',
|
9
|
+
description: 'The ID of the patient related to this task.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
},
|
12
|
+
assignToUserId: {
|
13
|
+
id: 'assignToUserId',
|
14
|
+
label: 'Assign to user',
|
15
|
+
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.',
|
16
|
+
type: extensions_core_1.FieldType.STRING,
|
17
|
+
},
|
18
|
+
content: {
|
19
|
+
id: 'content',
|
20
|
+
label: 'Content',
|
21
|
+
description: 'The content of the Task.',
|
22
|
+
type: extensions_core_1.FieldType.TEXT,
|
23
|
+
required: true,
|
24
|
+
},
|
25
|
+
dueDate: {
|
26
|
+
id: 'dueDate',
|
27
|
+
label: 'Due date',
|
28
|
+
description: 'The due date of the task.',
|
29
|
+
type: extensions_core_1.FieldType.DATE,
|
30
|
+
},
|
31
|
+
isReminderEnabled: {
|
32
|
+
id: 'isReminderEnabled',
|
33
|
+
label: 'Is reminder enabled',
|
34
|
+
description: 'Would you like to send reminders for this task?',
|
35
|
+
type: extensions_core_1.FieldType.BOOLEAN,
|
36
|
+
},
|
37
|
+
reminderIntervalType: {
|
38
|
+
id: 'reminderIntervalType',
|
39
|
+
label: 'Reminder interval type',
|
40
|
+
description: 'At what interval would you like to send reminders? The options are "daily", "weekly", "once".',
|
41
|
+
type: extensions_core_1.FieldType.STRING,
|
42
|
+
},
|
43
|
+
reminderIntervalValue: {
|
44
|
+
id: 'reminderIntervalValue',
|
45
|
+
label: 'Reminder interval value (weekly)',
|
46
|
+
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).',
|
47
|
+
type: extensions_core_1.FieldType.STRING,
|
48
|
+
required: false,
|
49
|
+
},
|
50
|
+
reminderIntervalValueOnce: {
|
51
|
+
id: 'reminderIntervalValueOnce',
|
52
|
+
label: 'Reminder interval value (once)',
|
53
|
+
description: 'When the interval type is set to "daily" or "weekly", leave this field blank. For "once" interval, set or select a date.',
|
54
|
+
type: extensions_core_1.FieldType.DATE,
|
55
|
+
required: false,
|
56
|
+
},
|
57
|
+
reminderTime: {
|
58
|
+
id: 'reminderTime',
|
59
|
+
label: 'Reminder time',
|
60
|
+
description: 'Time to send the reminder. Expressed in the number of minutes from midnight.',
|
61
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
62
|
+
},
|
63
|
+
};
|
64
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createTask/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,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,2BAAS,CAAC,IAAI;KACrB;IACD,iBAAiB,EAAE;QACjB,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,iDAAiD;QAC9D,IAAI,EAAE,2BAAS,CAAC,OAAO;KACxB;IACD,oBAAoB,EAAE;QACpB,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,+FAA+F;QACjG,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,qBAAqB,EAAE;QACrB,EAAE,EAAE,uBAAuB;QAC3B,KAAK,EAAE,kCAAkC;QACzC,WAAW,EACT,iLAAiL;QACnL,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;IACD,yBAAyB,EAAE;QACzB,EAAE,EAAE,2BAA2B;QAC/B,KAAK,EAAE,gCAAgC;QACvC,WAAW,EACT,0HAA0H;QAC5H,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,eAAe;QACtB,WAAW,EACT,8EAA8E;QAChF,IAAI,EAAE,2BAAS,CAAC,OAAO;KACxB;CAC8B,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.dataPoints = exports.fields = void 0;
|
4
|
+
var fields_1 = require("./fields");
|
5
|
+
Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
|
6
|
+
var dataPoints_1 = require("./dataPoints");
|
7
|
+
Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createTask/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|