@awell-health/awell-extensions 1.0.109 → 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 +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,37 @@
|
|
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 cancelAppointment_1 = require("../cancelAppointment");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('cancelAppointment 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 cancel an appointment', async () => {
|
19
|
+
await cancelAppointment_1.cancelAppointment.onActivityCreated((0, tests_1.generateTestPayload)({
|
20
|
+
fields: {
|
21
|
+
id: 'appointment-1',
|
22
|
+
},
|
23
|
+
settings: {
|
24
|
+
apiKey: 'apiKey',
|
25
|
+
apiUrl: 'test-url',
|
26
|
+
},
|
27
|
+
}), onComplete, jest.fn());
|
28
|
+
expect(sdk_2.mockGetSdkReturn.updateAppointment).toHaveBeenCalledWith({
|
29
|
+
input: {
|
30
|
+
id: 'appointment-1',
|
31
|
+
pm_status: 'Cancelled',
|
32
|
+
},
|
33
|
+
});
|
34
|
+
expect(onComplete).toHaveBeenCalled();
|
35
|
+
});
|
36
|
+
});
|
37
|
+
//# sourceMappingURL=cancelAppointment.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cancelAppointment.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/cancelAppointment/cancelAppointment.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,4DAAwD;AAExD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,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,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,qCAAiB,CAAC,iBAAiB,CACvC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,EAAE,EAAE,eAAe;aACpB;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,oBAAoB,CAAC;YAC9D,KAAK,EAAE;gBACL,EAAE,EAAE,eAAe;gBACnB,SAAS,EAAE,WAAW;aACvB;SACF,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
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 appointment in Healthie.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: true,
|
12
|
+
},
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/cancelAppointment/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,wCAAwC;QACrD,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/cancelAppointment/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { cancelAppointment } from './cancelAppointment';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.cancelAppointment = void 0;
|
4
|
+
var cancelAppointment_1 = require("./cancelAppointment");
|
5
|
+
Object.defineProperty(exports, "cancelAppointment", { enumerable: true, get: function () { return cancelAppointment_1.cancelAppointment; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/cancelAppointment/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
|
@@ -2,33 +2,17 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.closeChatConversation = 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 conversation in Healthie.',
|
15
|
-
type: extensions_core_1.FieldType.STRING,
|
16
|
-
required: true,
|
17
|
-
},
|
18
|
-
provider_id: {
|
19
|
-
id: 'provider_id',
|
20
|
-
label: 'Provider ID',
|
21
|
-
description: 'The ID of the provider that closes the conversation.',
|
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.closeChatConversation = {
|
27
11
|
key: 'closeChatConversation',
|
28
|
-
category:
|
12
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
29
13
|
title: 'Close chat conversation',
|
30
14
|
description: 'Close a chat conversation 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":"closeChatConversation.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/closeChatConversation/closeChatConversation.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,yCAAwE;AAExE,mEAAwD;AACxD,uCAAsC;AACtC,uDAAsD;AAEtD,qCAAiC;AAEpB,QAAA,qBAAqB,GAA2C;IAC3E,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;QACpC,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,MAAM,CAAA;QAClC,IAAI;YACF,IAAI,IAAA,cAAK,EAAC,EAAE,CAAC,IAAI,IAAA,cAAK,EAAC,WAAW,CAAC,EAAE;gBACnC,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE;4BAClC,KAAK,EAAE;gCACL,QAAQ,EAAE,gB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aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,38 @@
|
|
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 closeChatConversation_1 = require("../closeChatConversation");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('closeChatConversation 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 close a conversation', async () => {
|
19
|
+
await closeChatConversation_1.closeChatConversation.onActivityCreated((0, tests_1.generateTestPayload)({
|
20
|
+
fields: {
|
21
|
+
id: 'conversation-1',
|
22
|
+
provider_id: 'provider-1',
|
23
|
+
},
|
24
|
+
settings: {
|
25
|
+
apiKey: 'apiKey',
|
26
|
+
apiUrl: 'test-url',
|
27
|
+
},
|
28
|
+
}), onComplete, jest.fn());
|
29
|
+
expect(sdk_2.mockGetSdkReturn.updateConversation).toHaveBeenCalledWith({
|
30
|
+
input: {
|
31
|
+
id: 'conversation-1',
|
32
|
+
closed_by_id: 'provider-1',
|
33
|
+
},
|
34
|
+
});
|
35
|
+
expect(onComplete).toHaveBeenCalled();
|
36
|
+
});
|
37
|
+
});
|
38
|
+
//# sourceMappingURL=closeChatConversation.test.js.map
|
package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"closeChatConversation.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/closeChatConversation/closeChatConversation.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,oEAAgE;AAEhE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,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,6BAA6B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,6CAAqB,CAAC,iBAAiB,CAC3C,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,EAAE,EAAE,gBAAgB;gBACpB,WAAW,EAAE,YAAY;aAC1B;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,kBAAkB,CAAC,CAAC,oBAAoB,CAAC;YAC/D,KAAK,EAAE;gBACL,EAAE,EAAE,gBAAgB;gBACpB,YAAY,EAAE,YAAY;aAC3B;SACF,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,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 closeChatConversation: 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 conversation in Healthie.',
|
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 that closes the conversation.',
|
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/closeChatConversation/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,yCAAyC;QACtD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,sDAAsD;QACnE,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/closeChatConversation/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { closeChatConversation } from './closeChatConversation';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.closeChatConversation = void 0;
|
4
|
+
var closeChatConversation_1 = require("./closeChatConversation");
|
5
|
+
Object.defineProperty(exports, "closeChatConversation", { enumerable: true, get: function () { return closeChatConversation_1.closeChatConversation; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/closeChatConversation/index.ts"],"names":[],"mappings":";;;AAAA,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA"}
|
@@ -2,26 +2,17 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.completeTask = 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: 'Task ID',
|
14
|
-
description: 'The id of the task in Healthie.',
|
15
|
-
type: extensions_core_1.FieldType.STRING,
|
16
|
-
required: true,
|
17
|
-
},
|
18
|
-
};
|
7
|
+
const sdk_1 = require("../../gql/sdk");
|
8
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
9
|
+
const config_1 = require("./config");
|
19
10
|
exports.completeTask = {
|
20
11
|
key: 'completeTask',
|
21
|
-
category:
|
12
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
22
13
|
title: 'Complete task',
|
23
14
|
description: 'Complete a task in Healthie.',
|
24
|
-
fields,
|
15
|
+
fields: config_1.fields,
|
25
16
|
previewable: true,
|
26
17
|
onActivityCreated: async (payload, onComplete, onError) => {
|
27
18
|
const { fields, settings } = payload;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"completeTask.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/completeTask/completeTask.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,yCAAwE;AAExE,mEAAwD;AACxD,uCAAsC;AACtC,uDAAsD;AAEtD,qCAAiC;AAEpB,QAAA,YAAY,GAA2C;IAClE,GAAG,EAAE,cAAc;IACnB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,8BAA8B;IAC3C,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;QACpC,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAA;QACrB,IAAI;YACF,IAAI,IAAA,cAAK,EAAC,EAAE,CAAC,EAAE;gBACb,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE;4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6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
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 completeTask_1 = require("../completeTask");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('completeTask 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 complete a task', async () => {
|
19
|
+
await completeTask_1.completeTask.onActivityCreated((0, tests_1.generateTestPayload)({
|
20
|
+
fields: {
|
21
|
+
id: 'task-1',
|
22
|
+
},
|
23
|
+
settings: {
|
24
|
+
apiKey: 'apiKey',
|
25
|
+
apiUrl: 'test-url',
|
26
|
+
},
|
27
|
+
}), onComplete, jest.fn());
|
28
|
+
expect(sdk_2.mockGetSdkReturn.updateTask).toHaveBeenCalledWith({
|
29
|
+
input: {
|
30
|
+
id: 'task-1',
|
31
|
+
complete: true,
|
32
|
+
},
|
33
|
+
});
|
34
|
+
expect(onComplete).toHaveBeenCalled();
|
35
|
+
});
|
36
|
+
});
|
37
|
+
//# sourceMappingURL=completeTask.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"completeTask.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/completeTask/completeTask.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,kDAA8C;AAE9C,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,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,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACxC,MAAM,2BAAY,CAAC,iBAAiB,CAClC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,EAAE,EAAE,QAAQ;aACb;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,UAAU,CAAC,CAAC,oBAAoB,CAAC;YACvD,KAAK,EAAE;gBACL,EAAE,EAAE,QAAQ;gBACZ,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
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: 'Task ID',
|
9
|
+
description: 'The id of the task in Healthie.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: true,
|
12
|
+
},
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/completeTask/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,iCAAiC;QAC9C,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/completeTask/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { completeTask } from './completeTask';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.completeTask = void 0;
|
4
|
+
var completeTask_1 = require("./completeTask");
|
5
|
+
Object.defineProperty(exports, "completeTask", { enumerable: true, get: function () { return completeTask_1.completeTask; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/completeTask/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAApC,4GAAA,YAAY,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createAppointment/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,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;
|
@@ -36,11 +35,3 @@ declare const fields: {
|
|
36
35
|
required: true;
|
37
36
|
};
|
38
37
|
};
|
39
|
-
declare const dataPoints: {
|
40
|
-
appointmentId: {
|
41
|
-
key: string;
|
42
|
-
valueType: "string";
|
43
|
-
};
|
44
|
-
};
|
45
|
-
export declare const createAppointment: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
|
46
|
-
export {};
|
@@ -0,0 +1,41 @@
|
|
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: 'Patient ID',
|
9
|
+
description: 'The ID of the patient you want to create an appointment for.',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: true,
|
12
|
+
},
|
13
|
+
otherPartyId: {
|
14
|
+
id: 'otherPartyId',
|
15
|
+
label: 'Provider ID',
|
16
|
+
description: 'The ID of the provider the appointment is with. If none provided, the user the API key is associated with will be used.',
|
17
|
+
type: extensions_core_1.FieldType.STRING,
|
18
|
+
},
|
19
|
+
contactTypeId: {
|
20
|
+
id: 'contactTypeId',
|
21
|
+
label: 'Contact type ID',
|
22
|
+
description: 'How the appointment will be conducted.',
|
23
|
+
type: extensions_core_1.FieldType.STRING,
|
24
|
+
required: true,
|
25
|
+
},
|
26
|
+
appointmentTypeId: {
|
27
|
+
id: 'appointmentTypeId',
|
28
|
+
label: 'Appointment type ID',
|
29
|
+
description: 'The ID of the appointment type.',
|
30
|
+
type: extensions_core_1.FieldType.STRING,
|
31
|
+
required: true,
|
32
|
+
},
|
33
|
+
datetime: {
|
34
|
+
id: 'datetime',
|
35
|
+
label: 'Appointment date and time',
|
36
|
+
description: 'The date and time of the appointment in ISO8601 format.',
|
37
|
+
type: extensions_core_1.FieldType.DATE,
|
38
|
+
required: true,
|
39
|
+
},
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createAppointment/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,8DAA8D;QAC3E,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,yHAAyH;QAC3H,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,iBAAiB,EAAE;QACjB,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,2BAA2B;QAClC,WAAW,EAAE,yDAAyD;QACtE,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.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/createAppointment/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
@@ -2,59 +2,17 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.createAppointment = void 0;
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const fields = {
|
10
|
-
patientId: {
|
11
|
-
id: 'patientId',
|
12
|
-
label: 'Patient ID',
|
13
|
-
description: 'The ID of the patient you want to create an appointment for.',
|
14
|
-
type: extensions_core_1.FieldType.STRING,
|
15
|
-
required: true,
|
16
|
-
},
|
17
|
-
otherPartyId: {
|
18
|
-
id: 'otherPartyId',
|
19
|
-
label: 'Provider ID',
|
20
|
-
description: 'The ID of the provider the appointment is with. If none provided, the user the API key is associated with will be used.',
|
21
|
-
type: extensions_core_1.FieldType.STRING,
|
22
|
-
},
|
23
|
-
contactTypeId: {
|
24
|
-
id: 'contactTypeId',
|
25
|
-
label: 'Contact type ID',
|
26
|
-
description: 'How the appointment will be conducted.',
|
27
|
-
type: extensions_core_1.FieldType.STRING,
|
28
|
-
required: true,
|
29
|
-
},
|
30
|
-
appointmentTypeId: {
|
31
|
-
id: 'appointmentTypeId',
|
32
|
-
label: 'Appointment type ID',
|
33
|
-
description: 'The ID of the appointment type.',
|
34
|
-
type: extensions_core_1.FieldType.STRING,
|
35
|
-
required: true,
|
36
|
-
},
|
37
|
-
datetime: {
|
38
|
-
id: 'datetime',
|
39
|
-
label: 'Appointment date and time',
|
40
|
-
description: 'The date and time of the appointment in ISO8601 format.',
|
41
|
-
type: extensions_core_1.FieldType.DATE,
|
42
|
-
required: true,
|
43
|
-
},
|
44
|
-
};
|
45
|
-
const dataPoints = {
|
46
|
-
appointmentId: {
|
47
|
-
key: 'appointmentId',
|
48
|
-
valueType: 'string',
|
49
|
-
},
|
50
|
-
};
|
5
|
+
const errors_1 = require("../../errors");
|
6
|
+
const sdk_1 = require("../../gql/sdk");
|
7
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
8
|
+
const config_1 = require("./config");
|
51
9
|
exports.createAppointment = {
|
52
10
|
key: 'createAppointment',
|
53
|
-
category:
|
11
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
54
12
|
title: 'Create 1:1 appointment',
|
55
13
|
description: 'Create a 1:1 appointment in Healthie.',
|
56
|
-
fields,
|
57
|
-
dataPoints,
|
14
|
+
fields: config_1.fields,
|
15
|
+
dataPoints: config_1.dataPoints,
|
58
16
|
previewable: true,
|
59
17
|
onActivityCreated: async (payload, onComplete, onError) => {
|
60
18
|
var _a, _b;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createAppointment.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createAppointment/createAppointment.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,yCAA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