@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
@@ -0,0 +1,235 @@
|
|
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 getPatient_1 = require("../getPatient");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('getPatient action', () => {
|
10
|
+
const onComplete = jest.fn();
|
11
|
+
const DATE_MOCK = new Date('1990-01-01T00:00:00Z');
|
12
|
+
const DATE_FNS_STRING = '1990-01-01T00:00:00Z';
|
13
|
+
beforeAll(() => {
|
14
|
+
const mockSdk = sdk_1.getSdk;
|
15
|
+
mockSdk.mockImplementation(sdk_2.mockGetSdk);
|
16
|
+
jest.useFakeTimers();
|
17
|
+
jest.setSystemTime(DATE_MOCK);
|
18
|
+
});
|
19
|
+
beforeEach(() => {
|
20
|
+
jest.clearAllMocks();
|
21
|
+
});
|
22
|
+
afterAll(() => {
|
23
|
+
jest.useRealTimers();
|
24
|
+
});
|
25
|
+
describe('phone number validation', () => {
|
26
|
+
test.each([
|
27
|
+
{ healthiePhone: '+1 (555) 555-1234', validatedPhone: '+15555551234' },
|
28
|
+
{ healthiePhone: '+48 123 456 789', validatedPhone: '+48123456789' },
|
29
|
+
{ healthiePhone: '(+48) 123 456/789', validatedPhone: '+48123456789' },
|
30
|
+
{ healthiePhone: '', validatedPhone: undefined },
|
31
|
+
{ healthiePhone: undefined, validatedPhone: undefined },
|
32
|
+
])('$#. Should parse phone to "$validatedPhone" when healthie returns "$healthiePhone"', async ({ healthiePhone, validatedPhone }) => {
|
33
|
+
const returnValue = sdk_2.mockGetSdkReturn.getUser({});
|
34
|
+
sdk_2.mockGetSdkReturn.getUser.mockReturnValueOnce({
|
35
|
+
data: {
|
36
|
+
user: {
|
37
|
+
...returnValue.data.user,
|
38
|
+
phone_number: healthiePhone,
|
39
|
+
},
|
40
|
+
},
|
41
|
+
});
|
42
|
+
await getPatient_1.getPatient.onActivityCreated((0, tests_1.generateTestPayload)({
|
43
|
+
fields: {
|
44
|
+
patientId: 'patient-1',
|
45
|
+
},
|
46
|
+
settings: {
|
47
|
+
apiKey: 'apiKey',
|
48
|
+
apiUrl: 'test-url',
|
49
|
+
},
|
50
|
+
}), onComplete, jest.fn());
|
51
|
+
expect(onComplete).toHaveBeenCalledWith({
|
52
|
+
data_points: {
|
53
|
+
firstName: returnValue.data.user.first_name,
|
54
|
+
lastName: returnValue.data.user.last_name,
|
55
|
+
dob: DATE_FNS_STRING,
|
56
|
+
email: returnValue.data.user.email,
|
57
|
+
gender: returnValue.data.user.gender,
|
58
|
+
isoSex: '2',
|
59
|
+
phoneNumber: validatedPhone,
|
60
|
+
groupName: returnValue.data.user.user_group.name,
|
61
|
+
primaryProviderId: returnValue.data.user.dietitian_id,
|
62
|
+
},
|
63
|
+
events: undefined,
|
64
|
+
});
|
65
|
+
});
|
66
|
+
test.each([
|
67
|
+
{ healthiePhone: '555-1234', validatedPhone: undefined },
|
68
|
+
{ healthiePhone: '(555) 555-1234', validatedPhone: undefined },
|
69
|
+
])('$#. Should log event and return "undefined" for validatedPhone when healthie returns "$healthiePhone"', async ({ healthiePhone, validatedPhone }) => {
|
70
|
+
const returnValue = sdk_2.mockGetSdkReturn.getUser({});
|
71
|
+
sdk_2.mockGetSdkReturn.getUser.mockReturnValueOnce({
|
72
|
+
data: {
|
73
|
+
user: {
|
74
|
+
...returnValue.data.user,
|
75
|
+
phone_number: healthiePhone,
|
76
|
+
},
|
77
|
+
},
|
78
|
+
});
|
79
|
+
await getPatient_1.getPatient.onActivityCreated((0, tests_1.generateTestPayload)({
|
80
|
+
fields: {
|
81
|
+
patientId: 'patient-1',
|
82
|
+
},
|
83
|
+
settings: {
|
84
|
+
apiKey: 'apiKey',
|
85
|
+
apiUrl: 'test-url',
|
86
|
+
},
|
87
|
+
}), onComplete, jest.fn());
|
88
|
+
expect(onComplete).toHaveBeenCalledWith({
|
89
|
+
data_points: {
|
90
|
+
firstName: returnValue.data.user.first_name,
|
91
|
+
lastName: returnValue.data.user.last_name,
|
92
|
+
dob: DATE_FNS_STRING,
|
93
|
+
email: returnValue.data.user.email,
|
94
|
+
gender: returnValue.data.user.gender,
|
95
|
+
isoSex: '2',
|
96
|
+
phoneNumber: validatedPhone,
|
97
|
+
groupName: returnValue.data.user.user_group.name,
|
98
|
+
primaryProviderId: returnValue.data.user.dietitian_id,
|
99
|
+
},
|
100
|
+
events: [
|
101
|
+
{
|
102
|
+
date: DATE_MOCK.toISOString(),
|
103
|
+
error: {
|
104
|
+
category: 'WRONG_DATA',
|
105
|
+
message: `Phone number from Healthie (${String(healthiePhone)}) not stored because it isn't a valid E.164 phone number`,
|
106
|
+
},
|
107
|
+
text: {
|
108
|
+
en: `Phone number from Healthie (${String(healthiePhone)}) not stored because it isn't a valid E.164 phone number`,
|
109
|
+
},
|
110
|
+
},
|
111
|
+
],
|
112
|
+
});
|
113
|
+
});
|
114
|
+
});
|
115
|
+
describe('dob validation', () => {
|
116
|
+
test.each([
|
117
|
+
{
|
118
|
+
healthieDate: '1990-01-01',
|
119
|
+
validatedDate: '1990-01-01T00:00:00Z',
|
120
|
+
},
|
121
|
+
{
|
122
|
+
healthieDate: '1990 01 01',
|
123
|
+
validatedDate: '1990-01-01T00:00:00Z',
|
124
|
+
},
|
125
|
+
{
|
126
|
+
healthieDate: '1990/01/ 01',
|
127
|
+
validatedDate: '1990-01-01T00:00:00Z',
|
128
|
+
},
|
129
|
+
{
|
130
|
+
healthieDate: '01- 01-1990',
|
131
|
+
validatedDate: '1990-01-01T00:00:00Z',
|
132
|
+
},
|
133
|
+
{
|
134
|
+
healthieDate: '01 01 1990',
|
135
|
+
validatedDate: '1990-01-01T00:00:00Z',
|
136
|
+
},
|
137
|
+
{
|
138
|
+
healthieDate: '1990 01 01',
|
139
|
+
validatedDate: '1990-01-01T00:00:00Z',
|
140
|
+
},
|
141
|
+
{
|
142
|
+
healthieDate: '',
|
143
|
+
validatedDate: undefined,
|
144
|
+
},
|
145
|
+
{
|
146
|
+
healthieDate: undefined,
|
147
|
+
validatedDate: undefined,
|
148
|
+
},
|
149
|
+
])('$#. Should parse dob to "$validatedDate" when healthie returns "$healthieDate"', async ({ healthieDate, validatedDate }) => {
|
150
|
+
const returnValue = sdk_2.mockGetSdkReturn.getUser({});
|
151
|
+
sdk_2.mockGetSdkReturn.getUser.mockReturnValueOnce({
|
152
|
+
data: {
|
153
|
+
user: {
|
154
|
+
...returnValue.data.user,
|
155
|
+
dob: healthieDate,
|
156
|
+
},
|
157
|
+
},
|
158
|
+
});
|
159
|
+
await getPatient_1.getPatient.onActivityCreated((0, tests_1.generateTestPayload)({
|
160
|
+
fields: {
|
161
|
+
patientId: 'patient-1',
|
162
|
+
},
|
163
|
+
settings: {
|
164
|
+
apiKey: 'apiKey',
|
165
|
+
apiUrl: 'test-url',
|
166
|
+
},
|
167
|
+
}), onComplete, jest.fn());
|
168
|
+
expect(onComplete).toHaveBeenCalledWith({
|
169
|
+
data_points: {
|
170
|
+
firstName: returnValue.data.user.first_name,
|
171
|
+
lastName: returnValue.data.user.last_name,
|
172
|
+
dob: validatedDate,
|
173
|
+
email: returnValue.data.user.email,
|
174
|
+
gender: returnValue.data.user.gender,
|
175
|
+
isoSex: '2',
|
176
|
+
phoneNumber: '+15555551234',
|
177
|
+
groupName: returnValue.data.user.user_group.name,
|
178
|
+
primaryProviderId: returnValue.data.user.dietitian_id,
|
179
|
+
},
|
180
|
+
events: undefined,
|
181
|
+
});
|
182
|
+
});
|
183
|
+
test.each([
|
184
|
+
{
|
185
|
+
healthieDate: '1990 30 01',
|
186
|
+
validatedDate: undefined,
|
187
|
+
},
|
188
|
+
])('$#. Should log event and return "undefined" for validatedDate when healthie returns "$healthieDate"', async ({ healthieDate, validatedDate }) => {
|
189
|
+
const returnValue = sdk_2.mockGetSdkReturn.getUser({});
|
190
|
+
sdk_2.mockGetSdkReturn.getUser.mockReturnValueOnce({
|
191
|
+
data: {
|
192
|
+
user: {
|
193
|
+
...returnValue.data.user,
|
194
|
+
dob: healthieDate,
|
195
|
+
},
|
196
|
+
},
|
197
|
+
});
|
198
|
+
await getPatient_1.getPatient.onActivityCreated((0, tests_1.generateTestPayload)({
|
199
|
+
fields: {
|
200
|
+
patientId: 'patient-1',
|
201
|
+
},
|
202
|
+
settings: {
|
203
|
+
apiKey: 'apiKey',
|
204
|
+
apiUrl: 'test-url',
|
205
|
+
},
|
206
|
+
}), onComplete, jest.fn());
|
207
|
+
expect(onComplete).toHaveBeenCalledWith({
|
208
|
+
data_points: {
|
209
|
+
firstName: returnValue.data.user.first_name,
|
210
|
+
lastName: returnValue.data.user.last_name,
|
211
|
+
dob: validatedDate,
|
212
|
+
email: returnValue.data.user.email,
|
213
|
+
gender: returnValue.data.user.gender,
|
214
|
+
isoSex: '2',
|
215
|
+
phoneNumber: '+15555551234',
|
216
|
+
groupName: returnValue.data.user.user_group.name,
|
217
|
+
primaryProviderId: returnValue.data.user.dietitian_id,
|
218
|
+
},
|
219
|
+
events: [
|
220
|
+
{
|
221
|
+
date: DATE_MOCK.toISOString(),
|
222
|
+
error: {
|
223
|
+
category: 'WRONG_DATA',
|
224
|
+
message: `DOB from Healthie (${String(healthieDate)}) not stored because it isn't a valid ISO8601 date`,
|
225
|
+
},
|
226
|
+
text: {
|
227
|
+
en: `DOB from Healthie (${String(healthieDate)}) not stored because it isn't a valid ISO8601 date`,
|
228
|
+
},
|
229
|
+
},
|
230
|
+
],
|
231
|
+
});
|
232
|
+
});
|
233
|
+
});
|
234
|
+
});
|
235
|
+
//# sourceMappingURL=getPatient.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getPatient.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getPatient/getPatient.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,8CAA0C;AAE1C,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAA;IAClD,MAAM,eAAe,GAAG,sBAAsB,CAAA;IAE9C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,YAAmB,CAAA;QACnC,OAAO,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;QACtC,IAAI,CAAC,aAAa,EAAE,CAAA;QACpB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;IAC/B,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,GAAG,EAAE;QACZ,IAAI,CA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AiB,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY;iBACtD;gBACD,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE;wBAC7B,KAAK,EAAE;4BACL,QAAQ,EAAE,YAAY;4BACtB,OAAO,EAAE,sBAAsB,MAAM,CACnC,YAAY,CACb,oDAAoD;yBACtD;wBACD,IAAI,EAAE;4BACJ,EAAE,EAAE,sBAAsB,MAAM,CAC9B,YAAY,CACb,oDAAoD;yBACtD;qBACF;iBACF;aACF,CAAC,CAAA;QACJ,CAAC,CACF,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './getPatient';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./getPatient"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getPatient/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
|
@@ -255,6 +255,10 @@ export declare const actions: {
|
|
255
255
|
description: string;
|
256
256
|
type: import("@awell-health/extensions-core").FieldType.BOOLEAN;
|
257
257
|
};
|
258
|
+
/**
|
259
|
+
* Specs of this API endpoint are unclear so we are not sure what
|
260
|
+
* functional value it delivers in the current state. Needs to be revisited.
|
261
|
+
**/
|
258
262
|
provider_id: {
|
259
263
|
id: string;
|
260
264
|
label: string;
|
@@ -313,7 +317,6 @@ export declare const actions: {
|
|
313
317
|
label: string;
|
314
318
|
description: string;
|
315
319
|
type: import("@awell-health/extensions-core").FieldType.STRING;
|
316
|
-
stringType: import("@awell-health/extensions-core").StringType.EMAIL;
|
317
320
|
};
|
318
321
|
dob: {
|
319
322
|
id: string;
|
@@ -535,7 +538,10 @@ export declare const actions: {
|
|
535
538
|
description: string;
|
536
539
|
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
537
540
|
required: false;
|
538
|
-
};
|
541
|
+
}; /**
|
542
|
+
* There is bug in Healthie that prevents linking an address with a patient
|
543
|
+
* Waiting for fix
|
544
|
+
**/
|
539
545
|
minute: {
|
540
546
|
id: string;
|
541
547
|
label: string;
|
@@ -2,13 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.actions = void 0;
|
4
4
|
const createAppointment_1 = require("./createAppointment");
|
5
|
-
const createTask_1 = require("./createTask");
|
5
|
+
const createTask_1 = require("./createTask/createTask");
|
6
6
|
const getAppointment_1 = require("./getAppointment");
|
7
|
-
const getPatient_1 = require("./getPatient");
|
8
7
|
const sendChatMessage_1 = require("./sendChatMessage");
|
9
8
|
const createPatient_1 = require("./createPatient");
|
10
|
-
const updatePatient_1 = require("./updatePatient");
|
11
|
-
const applyTagToPatient_1 = require("./applyTagToPatient");
|
12
9
|
const removeTagFromPatient_1 = require("./removeTagFromPatient");
|
13
10
|
const createChartingNote_1 = require("./createChartingNote");
|
14
11
|
const sendFormCompletionRequest_1 = require("./sendFormCompletionRequest");
|
@@ -20,6 +17,9 @@ const cancelAppointment_1 = require("./cancelAppointment");
|
|
20
17
|
const deleteTask_1 = require("./deleteTask");
|
21
18
|
const completeTask_1 = require("./completeTask");
|
22
19
|
const assignPatientToGroup_1 = require("./assignPatientToGroup");
|
20
|
+
const updatePatient_1 = require("./updatePatient");
|
21
|
+
const getPatient_1 = require("./getPatient");
|
22
|
+
const applyTagToPatient_1 = require("./applyTagToPatient");
|
23
23
|
exports.actions = {
|
24
24
|
createAppointment: createAppointment_1.createAppointment,
|
25
25
|
createTask: createTask_1.createTask,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAC/C,iEAA6D;AAC7D,6DAAyD;AACzD,2EAAuE;AACvE,qDAAiD;AACjD,oDAAoD;AACpD,mEAA+D;AAC/D,2DAAuD;AACvD,2DAAuD;AACvD,6CAAyC;AACzC,iDAA6C;AAC7C,iEAA6D;AAC7D,mDAA+C;AAC/C,6CAAyC;AACzC,2DAAuD;AAE1C,QAAA,OAAO,GAAG;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,oBAAoB,EAApB,2CAAoB;IACpB,kBAAkB,EAAlB,uCAAkB;IAClB,yBAAyB,EAAzB,qDAAyB;IACzB,cAAc,EAAd,+BAAc;IACd;;;QAGI;IACJ,kBAAkB;IAClB,qBAAqB,EAArB,6CAAqB;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,iBAAiB,EAAjB,qCAAiB;IACjB;;;QAGI;IACJ,sBAAsB;IACtB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,oBAAoB,EAApB,2CAAoB;CACrB,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
|
id: {
|
5
4
|
id: string;
|
6
5
|
label: string;
|
@@ -16,5 +15,3 @@ declare const fields: {
|
|
16
15
|
required: true;
|
17
16
|
};
|
18
17
|
};
|
19
|
-
export declare const removeTagFromPatient: Action<typeof fields, typeof settings>;
|
20
|
-
export {};
|
@@ -0,0 +1,21 @@
|
|
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
|
+
id: {
|
7
|
+
id: 'id',
|
8
|
+
label: 'ID',
|
9
|
+
description: 'The ID of the tag to remove from the patient.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: true,
|
12
|
+
},
|
13
|
+
patient_id: {
|
14
|
+
id: 'patient_id',
|
15
|
+
label: 'Patient ID',
|
16
|
+
description: 'The ID of the patient to remove the tag from.',
|
17
|
+
type: extensions_core_1.FieldType.STRING,
|
18
|
+
required: true,
|
19
|
+
},
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/removeTagFromPatient/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,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"}
|
@@ -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/removeTagFromPatient/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { removeTagFromPatient } from './removeTagFromPatient';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.removeTagFromPatient = void 0;
|
4
|
+
var removeTagFromPatient_1 = require("./removeTagFromPatient");
|
5
|
+
Object.defineProperty(exports, "removeTagFromPatient", { enumerable: true, get: function () { return removeTagFromPatient_1.removeTagFromPatient; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/removeTagFromPatient/index.ts"],"names":[],"mappings":";;;AAAA,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA"}
|
@@ -2,33 +2,17 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.removeTagFromPatient = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
-
const errors_1 = require("
|
5
|
+
const errors_1 = require("../../errors");
|
6
6
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const fields = {
|
11
|
-
id: {
|
12
|
-
id: 'id',
|
13
|
-
label: 'ID',
|
14
|
-
description: 'The ID of the tag to remove from the patient.',
|
15
|
-
type: extensions_core_1.FieldType.STRING,
|
16
|
-
required: true,
|
17
|
-
},
|
18
|
-
patient_id: {
|
19
|
-
id: 'patient_id',
|
20
|
-
label: 'Patient ID',
|
21
|
-
description: 'The ID of the patient to remove the tag from.',
|
22
|
-
type: extensions_core_1.FieldType.STRING,
|
23
|
-
required: true,
|
24
|
-
},
|
25
|
-
};
|
7
|
+
const sdk_1 = require("../../gql/sdk");
|
8
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
9
|
+
const config_1 = require("./config");
|
26
10
|
exports.removeTagFromPatient = {
|
27
11
|
key: 'removeTagFromPatient',
|
28
|
-
category:
|
12
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
29
13
|
title: 'Remove tag from a patient',
|
30
14
|
description: 'Remove a tag from a patient in Healthie.',
|
31
|
-
fields,
|
15
|
+
fields: config_1.fields,
|
32
16
|
previewable: true,
|
33
17
|
onActivityCreated: async (payload, onComplete, onError) => {
|
34
18
|
const { fields, settings } = payload;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"removeTagFromPatient.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,yCAAwE;AAExE,mEAAwD;AACxD,uCAAsC;AACtC,uDAAsD;AAEtD,qCAAiC;AAEpB,QAAA,oBAAoB,GAA2C;IAC1E,GAAG,EAAE,sBAAsB;IAC3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CAC5B,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
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 removeTagFromPatient_1 = require("../removeTagFromPatient");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('removeTagFromPatient 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 remove tag from a patient', async () => {
|
19
|
+
await removeTagFromPatient_1.removeTagFromPatient.onActivityCreated((0, tests_1.generateTestPayload)({
|
20
|
+
fields: {
|
21
|
+
id: 'tag-1',
|
22
|
+
patient_id: 'patient-1',
|
23
|
+
},
|
24
|
+
settings: {
|
25
|
+
apiKey: 'apiKey',
|
26
|
+
apiUrl: 'test-url',
|
27
|
+
},
|
28
|
+
}), onComplete, jest.fn());
|
29
|
+
expect(sdk_2.mockGetSdkReturn.removeTagFromUser).toHaveBeenCalled();
|
30
|
+
expect(onComplete).toHaveBeenCalled();
|
31
|
+
});
|
32
|
+
});
|
33
|
+
//# sourceMappingURL=removeTagFromPatient.test.js.map
|
package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"removeTagFromPatient.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,kEAA8D;AAE9D,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,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,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,2CAAoB,CAAC,iBAAiB,CAC1C,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,EAAE,EAAE,OAAO;gBACX,UAAU,EAAE,WAAW;aACxB;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,iBAAiB,CAAC,CAAC,gBAAgB,EAAE,CAAA;QAC7D,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/sendChatMessage/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
|
package/dist/extensions/healthie/actions/{sendChatMessage.d.ts → sendChatMessage/config/fields.d.ts}
RENAMED
@@ -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
|
healthie_patient_id: {
|
5
4
|
id: string;
|
6
5
|
label: string;
|
@@ -23,11 +22,3 @@ declare const fields: {
|
|
23
22
|
required: true;
|
24
23
|
};
|
25
24
|
};
|
26
|
-
declare const dataPoints: {
|
27
|
-
conversationId: {
|
28
|
-
key: string;
|
29
|
-
valueType: "string";
|
30
|
-
};
|
31
|
-
};
|
32
|
-
export declare const sendChatMessage: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
|
33
|
-
export {};
|
@@ -0,0 +1,28 @@
|
|
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
|
+
healthie_patient_id: {
|
7
|
+
id: 'healthie_patient_id',
|
8
|
+
label: 'Healthie Patient ID',
|
9
|
+
description: 'The ID of the patient in Healthie you would like to send a chat message to.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: true,
|
12
|
+
},
|
13
|
+
provider_id: {
|
14
|
+
id: 'provider_id',
|
15
|
+
label: 'Provider ID',
|
16
|
+
description: 'The ID of the provider, the chat message will be sent in name of this provider.',
|
17
|
+
type: extensions_core_1.FieldType.STRING,
|
18
|
+
required: true,
|
19
|
+
},
|
20
|
+
message: {
|
21
|
+
id: 'message',
|
22
|
+
label: 'Message',
|
23
|
+
description: 'The chat message you would like to send.',
|
24
|
+
type: extensions_core_1.FieldType.HTML,
|
25
|
+
required: true,
|
26
|
+
},
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/sendChatMessage/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,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;QACvD,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fields = exports.dataPoints = void 0;
|
4
|
+
var dataPoints_1 = require("./dataPoints");
|
5
|
+
Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
|
6
|
+
var fields_1 = require("./fields");
|
7
|
+
Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/sendChatMessage/config/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { sendChatMessage } from './sendChatMessage';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.sendChatMessage = void 0;
|
4
|
+
var sendChatMessage_1 = require("./sendChatMessage");
|
5
|
+
Object.defineProperty(exports, "sendChatMessage", { enumerable: true, get: function () { return sendChatMessage_1.sendChatMessage; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/sendChatMessage/index.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAA1C,kHAAA,eAAe,OAAA"}
|